summaryrefslogtreecommitdiff
path: root/quickstep
diff options
context:
space:
mode:
authorAlex Chau <alexchau@google.com>2022-06-06 14:03:17 +0100
committerAlex Chau <alexchau@google.com>2022-06-09 12:12:57 +0000
commit2545e922644c823ea870aa483a0780c3bb9ef67a (patch)
tree81b0104ac942a7c75393429a489538b72cbd8852 /quickstep
parentd4a79eb99b9e98f901e1b4e244d7bfcc2b9d1c09 (diff)
downloadLauncher3-2545e922644c823ea870aa483a0780c3bb9ef67a.tar.gz
Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for getDisplays
Bug: 227459045 Bug: 221071695 Test: manual Change-Id: I8c1587e05a30abf75a01a84ebda6522606abb99b
Diffstat (limited to 'quickstep')
-rw-r--r--quickstep/src/com/android/quickstep/util/SystemWindowManagerProxy.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/util/SystemWindowManagerProxy.java b/quickstep/src/com/android/quickstep/util/SystemWindowManagerProxy.java
index 19a48dbf20..9bb3d56556 100644
--- a/quickstep/src/com/android/quickstep/util/SystemWindowManagerProxy.java
+++ b/quickstep/src/com/android/quickstep/util/SystemWindowManagerProxy.java
@@ -16,6 +16,7 @@
package com.android.quickstep.util;
import android.content.Context;
+import android.hardware.display.DisplayManager;
import android.view.Display;
import com.android.launcher3.util.window.WindowManagerProxy;
@@ -43,4 +44,10 @@ public class SystemWindowManagerProxy extends WindowManagerProxy {
public int getRotation(Context context) {
return context.getResources().getConfiguration().windowConfiguration.getRotation();
}
+
+ @Override
+ protected Display[] getDisplays(Context context) {
+ return context.getSystemService(DisplayManager.class).getDisplays(
+ DisplayManager.DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED);
+ }
}