Hide shelf in 2-Button Landscape

Disable overview rotation in 2-Button.

Fixes: 154181816
Test: Tested no button and 2 button,
overview actions worked as before.

Change-Id: Ic22c791c7a93460840d54aaf0bf32884cc110e19
This commit is contained in:
Vinit Nayak
2020-05-07 15:23:13 -07:00
parent 4cb77a60aa
commit 23681083b2
9 changed files with 63 additions and 31 deletions

View File

@@ -91,6 +91,9 @@ public class InsettableFrameLayout extends FrameLayout implements Insettable {
@Override
public void onViewAdded(View child) {
super.onViewAdded(child);
if (!isAttachedToWindow()) {
return;
}
setFrameLayoutChildInsets(child, mInsets, new Rect());
}