Consolidate isTablet logic across Launcher and SysUI

Fixes: 197960261
Test: Change display size; no nav bar and task bar showing at the same time
Change-Id: I56753e9389a49ca3ee455b248a041b3c1569f153
This commit is contained in:
Tracy Zhou
2021-09-23 10:18:11 -07:00
parent d523841ab4
commit c8beebf5a3
2 changed files with 10 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ public class InvariantDeviceProfile {
}
new DeviceGridState(this).writeToPrefs(context);
DisplayController.INSTANCE.get(context).addChangeListener(
DisplayController.INSTANCE.get(context).setPriorityListener(
(displayContext, info, flags) -> {
if ((flags & (CHANGE_DENSITY | CHANGE_SUPPORTED_BOUNDS)) != 0) {
onConfigChanged(displayContext);