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 authored and Android (Google) Code Review committed 2022-06-14 22:08:05 +00:00
commit 51ceb5f200
1 file changed
+1 -1
@@ -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;
}