Merge "Patch npe in TaskbarAllAppsController" into tm-qpr-dev

This commit is contained in:
Tracy Zhou
2022-06-09 22:12:08 +00:00
committed by Android (Google) Code Review
@@ -171,8 +171,8 @@ public final class TaskbarAllAppsController {
* This method should be called after an exit animation finishes, if applicable.
*/
void maybeCloseWindow() {
if (AbstractFloatingView.getOpenView(mAllAppsContext, TYPE_ALL) != null
|| mAllAppsContext.getDragController().isSystemDragInProgress()) {
if (mAllAppsContext != null && (AbstractFloatingView.hasOpenView(mAllAppsContext, TYPE_ALL)
|| mAllAppsContext.getDragController().isSystemDragInProgress())) {
return;
}
mProxyView.close(false);