Fixing issue where the prediction bar could be misplaced after installing an app.

- When the adapter changes, we didn't update the scroll position that the prediction
  bar tracks, which caused it to be misplaced.  This forces a refresh of that scroll
  position to the current state whenever an app is removed or added.
This commit is contained in:
Winson Chung
2015-05-14 09:55:17 -07:00
parent 6b27614c54
commit 02baa79e1f
2 changed files with 36 additions and 11 deletions
@@ -82,11 +82,11 @@ public class AppsContainerView extends BaseContainerView implements DragSource,
private int mNumAppsPerRow;
private int mNumPredictedAppsPerRow;
// This coordinate is relative to this container view
private Point mBoundsCheckLastTouchDownPos = new Point(-1, -1);
private final Point mBoundsCheckLastTouchDownPos = new Point(-1, -1);
// This coordinate is relative to its parent
private Point mIconLastTouchPos = new Point();
// This coordinate is used to proxy click and long-click events
private Point mPredictionIconTouchDownPos = new Point();
private final Point mIconLastTouchPos = new Point();
// This coordinate is used to proxy click and long-click events to the prediction bar icons
private final Point mPredictionIconTouchDownPos = new Point();
private int mContentMarginStart;
// Normal container insets
private int mContainerInset;