summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-05-07 19:28:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-07 19:28:37 +0000
commitc247a00e22d248ce7b1be492792d6f237ea64316 (patch)
treec6a68c4d760f7024a769d61f02e0ab8b2c162447
parent2f0101778dba1436fe43a53fd0a13261cd6b51da (diff)
parent1a637bee188aadb4283f1d5fa255c39b7a9fd2f3 (diff)
downloadandroid_packages_apps_Trebuchet-c247a00e22d248ce7b1be492792d6f237ea64316.tar.gz
android_packages_apps_Trebuchet-c247a00e22d248ce7b1be492792d6f237ea64316.tar.bz2
android_packages_apps_Trebuchet-c247a00e22d248ce7b1be492792d6f237ea64316.zip
Merge "Fixes an issue where on resetup of the FloatingHeaderView it defaulted to the main recyclerview even when the work recyclerview was active which resulted in the recyclerview not responding to scroll changes." into ub-launcher3-edmonton
-rw-r--r--src/com/android/launcher3/allapps/FloatingHeaderView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/FloatingHeaderView.java b/src/com/android/launcher3/allapps/FloatingHeaderView.java
index 378450e76..5a66ccd38 100644
--- a/src/com/android/launcher3/allapps/FloatingHeaderView.java
+++ b/src/com/android/launcher3/allapps/FloatingHeaderView.java
@@ -74,6 +74,7 @@ public class FloatingHeaderView extends LinearLayout implements
protected boolean mTabsHidden;
protected int mMaxTranslation;
+ private boolean mMainRVActive = true;
public FloatingHeaderView(@NonNull Context context) {
this(context, null);
@@ -95,7 +96,7 @@ public class FloatingHeaderView extends LinearLayout implements
mMainRV = setupRV(mMainRV, mAH[AllAppsContainerView.AdapterHolder.MAIN].recyclerView);
mWorkRV = setupRV(mWorkRV, mAH[AllAppsContainerView.AdapterHolder.WORK].recyclerView);
mParent = (ViewGroup) mMainRV.getParent();
- setMainActive(true);
+ setMainActive(mMainRVActive);
reset(false);
}
@@ -108,6 +109,7 @@ public class FloatingHeaderView extends LinearLayout implements
public void setMainActive(boolean active) {
mCurrentRV = active ? mMainRV : mWorkRV;
+ mMainRVActive = active;
}
public int getMaxTranslation() {