mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Fix widget tray clipping due to wrong padding
b/27380335 padding was set wrong when the widget view hierarchy was being refactored in this CL: ag/870011 Change-Id: I003634acded2bbe204098c0e6fefff13d154b5d6
This commit is contained in:
@@ -315,7 +315,15 @@ public class WidgetsContainerView extends BaseContainerView
|
||||
//
|
||||
@Override
|
||||
protected void onUpdateBgPadding(Rect padding, Rect bgPadding) {
|
||||
mRecyclerView.updateBackgroundPadding(bgPadding);
|
||||
if (Utilities.isRtl(getResources())) {
|
||||
getContentView().setPadding(0, bgPadding.top,
|
||||
bgPadding.right, bgPadding.bottom);
|
||||
mRecyclerView.updateBackgroundPadding(new Rect(bgPadding.left, 0, 0, 0));
|
||||
} else {
|
||||
getContentView().setPadding(bgPadding.left, bgPadding.top,
|
||||
0, bgPadding.bottom);
|
||||
mRecyclerView.updateBackgroundPadding(new Rect(0, 0, bgPadding.right, 0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user