mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Moving drag-drop related code into a separate package.
This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl". I'm not moving DragSource because it's referred from gsa code. Bug: 22609426 Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
This commit is contained in:
@@ -63,7 +63,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
// the min drag distance for a fling to register, to prevent random page shifts
|
||||
private static final int MIN_LENGTH_FOR_FLING = 25;
|
||||
|
||||
protected static final int PAGE_SNAP_ANIMATION_DURATION = 750;
|
||||
public static final int PAGE_SNAP_ANIMATION_DURATION = 750;
|
||||
protected static final int SLOW_PAGE_SNAP_ANIMATION_DURATION = 950;
|
||||
|
||||
private static final float RETURN_TO_ORIGINAL_PAGE_THRESHOLD = 0.33f;
|
||||
@@ -381,7 +381,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
/**
|
||||
* Returns the index of page to be shown immediately afterwards.
|
||||
*/
|
||||
int getNextPage() {
|
||||
public int getNextPage() {
|
||||
return (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user