Revert "Revert "Moving DeviceProfile properties into DevicePrope..."

Revert submission 33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK

Reason for revert: Error is fixed

Reverted changes: /q/submissionid:33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK

Change-Id: Ib86824134955903c11e51e52dbfd6368aba1cd50
This commit is contained in:
Sebastián Franco authored and Sebastian Franco committed 2025-05-23 14:08:11 -07:00
1 parent 1bec329180
commit e1d31e5406
128 files changed
+727 -597

No files matched your search

@@ -432,7 +432,8 @@ public abstract class SystemShortcut<T extends ActivityContext> extends ItemInfo
// basically is a check for small screens including Foldables when folded.
// However, the name is a bit misleading, so considering renaming.
WorkspaceItemInfo wsItemInfo = (WorkspaceItemInfo) itemInfo;
if (wsItemInfo.isNonResizeable() && activity.getDeviceProfile().isPhone) {
if (wsItemInfo.isNonResizeable()
&& activity.getDeviceProfile().getDeviceProperties().isPhone()) {
return null;
}
}