Merge "Fix "software rendering doesn't support hardware bitmaps" from task bar all apps" into tm-qpr-dev

This commit is contained in:
Tracy Zhou
2022-06-14 22:08:05 +00:00
committed by Android (Google) Code Review
@@ -187,7 +187,7 @@ public final class TaskbarAllAppsController {
TaskStackChangeListeners.getInstance().unregisterTaskStackListener(mTaskStackListener);
Optional.ofNullable(mAllAppsContext)
.map(c -> c.getSystemService(WindowManager.class))
.ifPresent(m -> m.removeView(mAllAppsContext.getDragLayer()));
.ifPresent(m -> m.removeViewImmediate(mAllAppsContext.getDragLayer()));
mAllAppsContext = null;
}