mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
OverviewActions: Fix action buttons in place
Forcing OverviewActions buttons to appear as if it is shown only once in overview screen by overlapping all instances in the same spot. Change-Id: I195d5455d5eb9f12a19c352169bc995849e59281
This commit is contained in:
@@ -245,6 +245,13 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
forceFinishScroller(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns left offset of a page. This is the gap between pages and prevents overlap.
|
||||
*/
|
||||
public int scrollOffsetLeft() {
|
||||
return mInsets.left + getPaddingLeft();
|
||||
}
|
||||
|
||||
private void abortScrollerAnimation(boolean resetNextPage) {
|
||||
mScroller.abortAnimation();
|
||||
// We need to clean up the next page here to avoid computeScrollHelper from
|
||||
|
||||
Reference in New Issue
Block a user