mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Extend background to full screen.
Gradient and black backgrounds were stopping at the Status Bar. When returning from a full screen app to the launcher the wallpaper was completely visible when it should have been obscured by these backgrounds. Making the app full screen while keeping the views within the system insets fixes this. Bug 7410717 fixed. Change-Id: If3f7e4808961ee6c80fe2d0a328e6ca39fa5eb7a
This commit is contained in:
@@ -399,8 +399,10 @@ public class AppWidgetResizeFrame extends FrameLayout {
|
||||
|
||||
public void snapToWidget(boolean animate) {
|
||||
final DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
|
||||
int xOffset = mCellLayout.getLeft() + mCellLayout.getPaddingLeft() - mWorkspace.getScrollX();
|
||||
int yOffset = mCellLayout.getTop() + mCellLayout.getPaddingTop() - mWorkspace.getScrollY();
|
||||
int xOffset = mCellLayout.getLeft() + mCellLayout.getPaddingLeft()
|
||||
+ mDragLayer.getPaddingLeft() - mWorkspace.getScrollX();
|
||||
int yOffset = mCellLayout.getTop() + mCellLayout.getPaddingTop()
|
||||
+ mDragLayer.getPaddingTop() - mWorkspace.getScrollY();
|
||||
|
||||
int newWidth = mWidgetView.getWidth() + 2 * mBackgroundPadding - mWidgetPaddingLeft -
|
||||
mWidgetPaddingRight;
|
||||
|
||||
Reference in New Issue
Block a user