summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/states/SpringLoadedState.java
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-03-03 15:32:12 -0800
committerTony <twickham@google.com>2019-03-03 15:43:50 -0800
commit4bb4b89b9a677ae3548fefdcbc11be9bd906c24a (patch)
treea2adacb392e5c6c4f23e55e634f6427017383840 /src/com/android/launcher3/states/SpringLoadedState.java
parent9db9d62b278c69ba62993696f0456ab5c0e39a95 (diff)
downloadandroid_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.tar.gz
android_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.tar.bz2
android_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.zip
Scale and translate hotseat with workspace instead of all apps
- Move the hotseat alongside workspace instead of on top of all apps in xml layout - Set pivot point of hotseat to match the workspace's, and apply the same scale - Translate the hotseat with the workspace instead of all apps - SpringLoadedState does not scale or translate the hotseat Change-Id: Ic45fe99f83f0e0012afa78073d9577e65da444e2
Diffstat (limited to 'src/com/android/launcher3/states/SpringLoadedState.java')
-rw-r--r--src/com/android/launcher3/states/SpringLoadedState.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/states/SpringLoadedState.java b/src/com/android/launcher3/states/SpringLoadedState.java
index 35f7f8831..d49dfbb8f 100644
--- a/src/com/android/launcher3/states/SpringLoadedState.java
+++ b/src/com/android/launcher3/states/SpringLoadedState.java
@@ -73,6 +73,11 @@ public class SpringLoadedState extends LauncherState {
}
@Override
+ public boolean scaleHotseatWithWorkspace() {
+ return false;
+ }
+
+ @Override
public void onStateEnabled(Launcher launcher) {
Workspace ws = launcher.getWorkspace();
ws.showPageIndicatorAtCurrentScroll();