From 864458f326260c3ca5d4d0984fe142ce691dfd60 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Mon, 15 Sep 2025 18:59:00 +0700 Subject: [PATCH] chore: Log device profile configuration for debug Signed-off-by: Pun Butrach --- src/com/android/launcher3/util/DisplayController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/launcher3/util/DisplayController.java b/src/com/android/launcher3/util/DisplayController.java index 45f985d50b..d866981e0a 100644 --- a/src/com/android/launcher3/util/DisplayController.java +++ b/src/com/android/launcher3/util/DisplayController.java @@ -658,12 +658,18 @@ public class DisplayController implements DesktopVisibilityListener { int type = supportedBounds.stream() .mapToInt(bounds -> isTablet(bounds) ? flagTablet : flagPhone) .reduce(0, (a, b) -> a | b); + + //type = flagTablet; + // pE-TODO(n/a): Testing DC! if (type == (flagPhone | flagTablet)) { // device has profiles supporting both phone and tablet modes + Log.d("LC-DisplayController", "Device has profiles supporting both phone and tablet modes"); return TYPE_MULTI_DISPLAY; } else if (type == flagTablet) { + Log.d("LC-DisplayController", "Device has tablet profile"); return TYPE_TABLET; } else { + Log.d("LC-DisplayController", "Device has phone profile"); return TYPE_PHONE; } }