summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-06-03 21:24:28 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-06-06 18:51:09 (GMT)
commitabf7e7d5b17e406663435be4f41705d9afd57259 (patch)
tree2984268249e1c973d2605908da6baf5a2d347579
parent3b75ffff799f1d417db1385b80fb7a88212677c3 (diff)
downloadandroid_packages_apps_Trebuchet-abf7e7d5b17e406663435be4f41705d9afd57259.zip
android_packages_apps_Trebuchet-abf7e7d5b17e406663435be4f41705d9afd57259.tar.gz
android_packages_apps_Trebuchet-abf7e7d5b17e406663435be4f41705d9afd57259.tar.bz2
Trebuchet: Never show page indicator in app drawer
When rotation is enabled and we rotate the app launcher, we attempt to update the indicator alpha state before the view is attached. This results in the alpha state not applying to the indicator. Instead, always set the view to INVISIBLE when the app drawer is showing and the workspace is attached. FEIJ-998 Change-Id: Ia2691a12c2cc79ea76a7e91d7d13e94b97df09b5
-rw-r--r--src/com/android/launcher3/Workspace.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index d5b6de0..20e05a1 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -1718,6 +1718,8 @@ public class Workspace extends PagedView
mWindowToken = getWindowToken();
computeScroll();
mDragController.setWindowToken(mWindowToken);
+ if (mLauncher.isAppsViewVisible() && mPageIndicator != null)
+ mPageIndicator.setVisibility(INVISIBLE);
}
protected void onDetachedFromWindow() {