Support multiple Views of extra hotseat content

Also adjust workspace page indicator:
- Center vertically
- Rounded corners

Change-Id: I96c2f3da3522d70726f544126b516c33c8fb7bc8
This commit is contained in:
Tony Wickham
2018-03-21 15:51:23 -07:00
parent 81bd3f57cf
commit a97f0f20cd
5 changed files with 38 additions and 8 deletions

View File

@@ -84,8 +84,10 @@ public class WorkspaceStateTransitionAnimation {
float hotseatExtraAlpha = (elements & HOTSEAT_EXTRA) != 0 ? 1 : 0;
propertySetter.setViewAlpha(mLauncher.getHotseat().getLayout(), hotseatIconsAlpha,
pageAlphaProvider.interpolator);
propertySetter.setViewAlpha(UiFactory.getHotseatExtraContent(mLauncher.getHotseat()),
hotseatExtraAlpha, pageAlphaProvider.interpolator);
for (View hotseatExtraContent : UiFactory.getHotseatExtraContent(mLauncher.getHotseat())) {
propertySetter.setViewAlpha(hotseatExtraContent, hotseatExtraAlpha,
pageAlphaProvider.interpolator);
}
propertySetter.setViewAlpha(mLauncher.getWorkspace().getPageIndicator(),
hotseatIconsAlpha, pageAlphaProvider.interpolator);