summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2016-06-03 14:24:28 -0700
committerScott Mertz <scott@cyngn.com>2016-06-07 09:45:40 -0700
commit4d7bf5d65aa9941d11ffa7f132d428cc91e94c83 (patch)
tree102af65d022b646e7b6fac5b6ca42091f4c02aed
parent99896611555d13f7d65f7dfda9036551ab00f1fb (diff)
downloadandroid_packages_apps_Trebuchet-4d7bf5d65aa9941d11ffa7f132d428cc91e94c83.zip
android_packages_apps_Trebuchet-4d7bf5d65aa9941d11ffa7f132d428cc91e94c83.tar.gz
android_packages_apps_Trebuchet-4d7bf5d65aa9941d11ffa7f132d428cc91e94c83.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 (cherry picked from commit abf7e7d5b17e406663435be4f41705d9afd57259)
-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() {