Add recents position callback to SystemUiProxy
Flag: com.android.systemui.enable_underlay Test: atest AmbientCueRepositoryTest Test: atest AmbientCueInteractorTest Test: atest AmbientCueViewModelTest Test: atest TaskbarNavButtonControllerTest Bug: 415914274 Bug: 415914083 Change-Id: Ie6c7412d3bbc9cd64e4c9993db47821962e1b1fc
This commit is contained in:
1 parent
9e4b44afcd
commit
02c6fd6604
4 files changed
+32
No files matched your search
@@ -511,6 +511,13 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
navButtonController.onButtonClick(BUTTON_RECENTS, v);
|
||||
mHitboxExtender.onRecentsButtonClicked();
|
||||
});
|
||||
mRecentsButton.addOnLayoutChangeListener(
|
||||
(v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> {
|
||||
int[] location = v.getLocationOnScreen();
|
||||
Rect bounds = new Rect(location[0], location[1], location[0] + v.getWidth(),
|
||||
location[1] + v.getHeight());
|
||||
navButtonController.onRecentsButtonLayoutChanged(bounds);
|
||||
});
|
||||
mPropertyHolders.add(new StatePropertyHolder(mRecentsButton,
|
||||
flags -> (flags & FLAG_KEYGUARD_VISIBLE) == 0 && (flags & FLAG_DISABLE_RECENTS) == 0
|
||||
&& !mContext.isNavBarKidsModeActive() && !mContext.isGestureNav()));
|
||||
|
||||
Reference in new issue
Block a user