mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Removing layout handling in DeviceProfile and moving it to
individual views Bug: 71709920 Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
This commit is contained in:
@@ -97,4 +97,14 @@ public class InsettableFrameLayout extends FrameLayout implements Insettable {
|
||||
super.onViewAdded(child);
|
||||
setFrameLayoutChildInsets(child, mInsets, new Rect());
|
||||
}
|
||||
|
||||
public static void dispatchInsets(ViewGroup parent, Rect insets) {
|
||||
final int n = parent.getChildCount();
|
||||
for (int i = 0; i < n; i++) {
|
||||
final View child = parent.getChildAt(i);
|
||||
if (child instanceof Insettable) {
|
||||
((Insettable) child).setInsets(insets);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user