mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226) - Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226) - Fixing regression where the market button had no press feedback Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
This commit is contained in:
@@ -633,6 +633,12 @@ public class DragLayer extends FrameLayout {
|
||||
|
||||
@Override
|
||||
protected int getChildDrawingOrder(int childCount, int i) {
|
||||
// We don't want to prioritize the workspace drawing on top of the other children in
|
||||
// landscape for the overscroll event.
|
||||
if (LauncherApplication.isScreenLandscape(getContext())) {
|
||||
return super.getChildDrawingOrder(childCount, i);
|
||||
}
|
||||
|
||||
if (mWorkspaceIndex == -1 || mQsbIndex == -1 ||
|
||||
mLauncher.getWorkspace().isDrawingBackgroundGradient()) {
|
||||
return i;
|
||||
|
||||
@@ -3526,11 +3526,13 @@ public class Workspace extends SmoothPagedView
|
||||
mOverscrollFade = fade;
|
||||
float reducedFade = 0.5f + 0.5f * (1 - fade);
|
||||
final ViewGroup parent = (ViewGroup) getParent();
|
||||
final ImageView qsbDivider = (ImageView) (parent.findViewById(R.id.qsb_divider));
|
||||
final ImageView dockDivider = (ImageView) (parent.findViewById(R.id.dock_divider));
|
||||
final ImageView scrollIndicator = getScrollingIndicator();
|
||||
|
||||
cancelScrollingIndicatorAnimations();
|
||||
dockDivider.setAlpha(reducedFade);
|
||||
if (qsbDivider != null) qsbDivider.setAlpha(reducedFade);
|
||||
if (dockDivider != null) dockDivider.setAlpha(reducedFade);
|
||||
scrollIndicator.setAlpha(1 - fade);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user