chore: Log device profile configuration for debug

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach
2025-09-15 18:59:00 +07:00
parent a7c52dd171
commit 864458f326
@@ -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;
}
}