Change AllApps padding to use a Rect
AllApps uses different values for left and right padding in some places (e.g. ActivityAllAppsContainerView uses workspacePadding.left/right), and this change is the first step into moving those values into DeviceProfile. Bug: 269632571 Test: NexusLauncherTest Flag: NONE Change-Id: I14c4edf55ca74f256b1aaa336fff246a0c78e25d
This commit is contained in:
1 parent
866e77101c
commit
b433c9c312
17 files changed
+70
-53
No files matched your search
@@ -451,9 +451,9 @@ public class FloatingHeaderView extends LinearLayout implements
|
||||
|
||||
@Override
|
||||
public void setInsets(Rect insets) {
|
||||
int leftRightPadding = ActivityContext.lookupContext(getContext())
|
||||
.getDeviceProfile().allAppsLeftRightPadding;
|
||||
setPadding(leftRightPadding, getPaddingTop(), leftRightPadding, getPaddingBottom());
|
||||
Rect allAppsPadding = ActivityContext.lookupContext(getContext())
|
||||
.getDeviceProfile().allAppsPadding;
|
||||
setPadding(allAppsPadding.left, getPaddingTop(), allAppsPadding.right, getPaddingBottom());
|
||||
}
|
||||
|
||||
public <T extends FloatingHeaderRow> T findFixedRowByType(Class<T> type) {
|
||||
|
||||
Reference in new issue
Block a user