diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java index 2c5b510b0f..82b6747da7 100644 --- a/src/com/android/launcher3/popup/SystemShortcut.java +++ b/src/com/android/launcher3/popup/SystemShortcut.java @@ -426,6 +426,16 @@ public abstract class SystemShortcut extends ItemInfo && !(itemInfo instanceof WorkspaceItemInfo)) { return null; } + if (itemInfo instanceof WorkspaceItemInfo) { + // Don't show bubble shortcut option for non-resizeable apps on small screens. + // TODO(b/411558731): isPhone just checks for smallest width < 600dp, so it + // 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) { + return null; + } + } return new BubbleShortcut<>(activity, itemInfo, originalView); };