Loading core/java/com/android/internal/app/ChooserActivity.java +19 −10 Original line number Diff line number Diff line Loading @@ -2545,8 +2545,8 @@ public class ChooserActivity extends ResolverActivity { if (isDirectShare) { DirectShareViewHolder dsvh = (DirectShareViewHolder) holder; setViewHeight(dsvh.getRow(0), holder.getMeasuredRowHeight()); setViewHeight(dsvh.getRow(1), holder.getMeasuredRowHeight()); setViewHeight(dsvh.getRow(0), dsvh.getMinRowHeight()); setViewHeight(dsvh.getRow(1), dsvh.getMinRowHeight()); } viewGroup.setTag(holder); Loading Loading @@ -2828,6 +2828,10 @@ public class ChooserActivity extends ResolverActivity { return mDirectShareCurrHeight; } public int getMinRowHeight() { return mDirectShareMinHeight; } public void setViewVisibility(int i, int visibility) { final View v = getView(i); if (visibility == View.VISIBLE) { Loading @@ -2850,6 +2854,10 @@ public class ChooserActivity extends ResolverActivity { } public void handleScroll(AbsListView view, int y, int oldy, int maxTargetsPerRow) { // only exit early if fully collapsed, otherwise onListRebuilt() with shifting // targets can lock us into an expanded mode boolean notExpanded = mDirectShareCurrHeight == mDirectShareMinHeight; if (notExpanded) { if (mHideDirectShareExpansion) { return; } Loading @@ -2860,6 +2868,7 @@ public class ChooserActivity extends ResolverActivity { mHideDirectShareExpansion = true; return; } } int yDiff = (int) ((oldy - y) * DIRECT_SHARE_EXPANSION_RATE); Loading Loading
core/java/com/android/internal/app/ChooserActivity.java +19 −10 Original line number Diff line number Diff line Loading @@ -2545,8 +2545,8 @@ public class ChooserActivity extends ResolverActivity { if (isDirectShare) { DirectShareViewHolder dsvh = (DirectShareViewHolder) holder; setViewHeight(dsvh.getRow(0), holder.getMeasuredRowHeight()); setViewHeight(dsvh.getRow(1), holder.getMeasuredRowHeight()); setViewHeight(dsvh.getRow(0), dsvh.getMinRowHeight()); setViewHeight(dsvh.getRow(1), dsvh.getMinRowHeight()); } viewGroup.setTag(holder); Loading Loading @@ -2828,6 +2828,10 @@ public class ChooserActivity extends ResolverActivity { return mDirectShareCurrHeight; } public int getMinRowHeight() { return mDirectShareMinHeight; } public void setViewVisibility(int i, int visibility) { final View v = getView(i); if (visibility == View.VISIBLE) { Loading @@ -2850,6 +2854,10 @@ public class ChooserActivity extends ResolverActivity { } public void handleScroll(AbsListView view, int y, int oldy, int maxTargetsPerRow) { // only exit early if fully collapsed, otherwise onListRebuilt() with shifting // targets can lock us into an expanded mode boolean notExpanded = mDirectShareCurrHeight == mDirectShareMinHeight; if (notExpanded) { if (mHideDirectShareExpansion) { return; } Loading @@ -2860,6 +2868,7 @@ public class ChooserActivity extends ResolverActivity { mHideDirectShareExpansion = true; return; } } int yDiff = (int) ((oldy - y) * DIRECT_SHARE_EXPANSION_RATE); Loading