Add metric logging for fake landscape usage

- Reuse existing TaskSwitcherContainer for Overview metric logging
- Log current orientation state for Overview when interacting with
gestures or via three button nav
- Log current orientation state on each phone rotation

Bug: 332870519
Test: Manual
Flag: NA
Change-Id: Ia10cf1acb809432175daab55151998f0d77362f9
This commit is contained in:
samcackett
2024-04-25 11:12:52 +01:00
parent fa09b12443
commit 76331b6c17
29 changed files with 254 additions and 49 deletions

View File

@@ -375,7 +375,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
*/
protected boolean isLaunchingFromRecents(@NonNull View v,
@Nullable RemoteAnimationTarget[] targets) {
return mLauncher.getStateManager().getState().overviewUi
return mLauncher.getStateManager().getState().isRecentsViewVisible
&& findTaskViewToLaunch(mLauncher.getOverviewPanel(), v, targets) != null;
}