Merge "Do not add HOTSEAT_ICONS to visible elements for device type "phone" in ALL_APPS State" into tm-dev am: 002e1fcde5 am: 5b8be11c37 am: 8fdcfe0520
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18084536 Change-Id: I21e8665497dfac8fb8318e14e56dc9ee8f0d77b9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
65e2d9dbb3
3 files changed
+15
-2
No files matched your search
@@ -30,7 +30,8 @@ import com.android.launcher3.util.Themes;
|
||||
*/
|
||||
public class AllAppsState extends LauncherState {
|
||||
|
||||
private static final int STATE_FLAGS = FLAG_WORKSPACE_INACCESSIBLE | FLAG_CLOSE_POPUPS;
|
||||
private static final int STATE_FLAGS =
|
||||
FLAG_WORKSPACE_INACCESSIBLE | FLAG_CLOSE_POPUPS | FLAG_HOTSEAT_INACCESSIBLE;
|
||||
|
||||
public AllAppsState(int id) {
|
||||
super(id, LAUNCHER_STATE_ALLAPPS, STATE_FLAGS);
|
||||
@@ -88,7 +89,9 @@ public class AllAppsState extends LauncherState {
|
||||
|
||||
@Override
|
||||
public int getVisibleElements(Launcher launcher) {
|
||||
return ALL_APPS_CONTENT | HOTSEAT_ICONS;
|
||||
// Don't add HOTSEAT_ICONS for phones in ALL_APPS state.
|
||||
return launcher.getDeviceProfile().isPhone ? ALL_APPS_CONTENT
|
||||
: ALL_APPS_CONTENT | HOTSEAT_ICONS;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user