Perform Snap animation in Folder PageIndicatorDots
Previously snapToPageImmediately was used, but that was the wrong method. Bug: 408227356 Test: Verified that the animation runs well locally on device. Flag: com.android.launcher3.enable_launcher_visual_refresh Change-Id: Iedee458e61de2d3542137615d3ff86cb42bdfb02
This commit is contained in:
@@ -131,7 +131,7 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
|
||||
public void setFolder(Folder folder) {
|
||||
mFolder = folder;
|
||||
mPageIndicator = folder.findViewById(R.id.folder_page_indicator);
|
||||
mPageIndicator.setArrowClickListener(direction -> snapToPageImmediately(
|
||||
mPageIndicator.setArrowClickListener(direction -> snapToPage(
|
||||
(Direction.END == direction) ? mCurrentPage + 1 : mCurrentPage - 1));
|
||||
initParentViews(folder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user