mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Fix NPE when mRecentsView is null"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e8b200eb6b
@@ -1198,10 +1198,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
// We probably never received an animation controller, skip logging.
|
||||
return;
|
||||
}
|
||||
int pageIndex = endTarget == LAST_TASK
|
||||
int pageIndex = endTarget == LAST_TASK || mRecentsView == null
|
||||
? LOG_NO_OP_PAGE_INDEX
|
||||
: mRecentsView.getNextPage();
|
||||
// TODO: set correct container using the pageIndex
|
||||
logger.withRank(pageIndex);
|
||||
logger.log(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user