mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Just for now, for fun" into jb-ub-gel-agar
This commit is contained in:
@@ -1327,14 +1327,16 @@ public class Workspace extends SmoothPagedView
|
||||
|
||||
float progress = (1.0f * scrollDelta) /
|
||||
(getScrollForPage(index + 1) - getScrollForPage(index));
|
||||
progress = Math.max(0, progress);
|
||||
|
||||
setBackgroundAlpha(progress * 0.8f);
|
||||
float transY = progress * (getViewportHeight() - getPageIndicator().getTop());
|
||||
|
||||
if (mLauncher.getHotseat() != null) {
|
||||
mLauncher.getHotseat().setTranslationX(translationX);
|
||||
mLauncher.getHotseat().setTranslationY(transY);
|
||||
}
|
||||
if (getPageIndicator() != null) {
|
||||
getPageIndicator().setTranslationX(translationX);
|
||||
getPageIndicator().setAlpha(1 - progress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user