summaryrefslogtreecommitdiff
path: root/packages/SystemUI/shared
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2020-03-26 13:13:04 -0700
committer Hongwei Wang <hwwang@google.com> 2020-03-27 11:10:12 -0700
commit221fe3d9059802c6a97eec035dcb4d074edef356 (patch)
tree534e7aaa511f395cf4c11d6618c42251837a1248 /packages/SystemUI/shared
parent7b1e562c6280d3de01683c846ddc8619715f8a8d (diff)
Save reentry bounds from SysUI
On the other hand, since we won't be able to get the callback from TaskOrganizer when an activity (used to be in PiP mode) is removed, reset of the reentry bounds is kept in WM. Bug: 152549281 Test: manually enter/exit PiP Change-Id: I8b4b7f87c4a7601d8bdf32af8105a68450012a87
Diffstat (limited to 'packages/SystemUI/shared')
-rw-r--r--packages/SystemUI/shared/src/com/android/systemui/shared/system/PinnedStackListenerForwarder.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/system/PinnedStackListenerForwarder.java b/packages/SystemUI/shared/src/com/android/systemui/shared/system/PinnedStackListenerForwarder.java
index 360244c9af52..34a0268201f4 100644
--- a/packages/SystemUI/shared/src/com/android/systemui/shared/system/PinnedStackListenerForwarder.java
+++ b/packages/SystemUI/shared/src/com/android/systemui/shared/system/PinnedStackListenerForwarder.java
@@ -74,16 +74,9 @@ public class PinnedStackListenerForwarder extends IPinnedStackListener.Stub {
}
@Override
- public void onSaveReentryBounds(ComponentName componentName, Rect bounds) {
+ public void onActivityHidden(ComponentName componentName) {
for (PinnedStackListener listener : mListeners) {
- listener.onSaveReentryBounds(componentName, bounds);
- }
- }
-
- @Override
- public void onResetReentryBounds(ComponentName componentName) {
- for (PinnedStackListener listener : mListeners) {
- listener.onResetReentryBounds(componentName);
+ listener.onActivityHidden(componentName);
}
}
@@ -121,9 +114,7 @@ public class PinnedStackListenerForwarder extends IPinnedStackListener.Stub {
public void onActionsChanged(ParceledListSlice actions) {}
- public void onSaveReentryBounds(ComponentName componentName, Rect bounds) {}
-
- public void onResetReentryBounds(ComponentName componentName) {}
+ public void onActivityHidden(ComponentName componentName) {}
public void onDisplayInfoChanged(DisplayInfo displayInfo) {}