mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Refactor FolderIcon to separate the preview effect into it's own class
-> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
This commit is contained in:
@@ -343,7 +343,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
int getViewportWidth() {
|
||||
return mViewport.width();
|
||||
}
|
||||
int getViewportHeight() {
|
||||
public int getViewportHeight() {
|
||||
return mViewport.height();
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
return (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
|
||||
}
|
||||
|
||||
int getPageCount() {
|
||||
public int getPageCount() {
|
||||
return getChildCount();
|
||||
}
|
||||
|
||||
@@ -2020,7 +2020,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
snapToPage(whichPage, PAGE_SNAP_ANIMATION_DURATION);
|
||||
}
|
||||
|
||||
protected void snapToPageImmediately(int whichPage) {
|
||||
public void snapToPageImmediately(int whichPage) {
|
||||
snapToPage(whichPage, PAGE_SNAP_ANIMATION_DURATION, true, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user