diff options
| author | Evan Rosky <erosky@google.com> | 2021-03-11 19:24:09 -0800 |
|---|---|---|
| committer | Evan Rosky <erosky@google.com> | 2021-03-15 15:37:07 -0700 |
| commit | 6c5f8fc3d8132b7894639ffa27bd5a1e4a08a93f (patch) | |
| tree | 5c3b227e296e7b3820e4a9ee234229a59207124a /core/java/android/app/ActivityClient.java | |
| parent | 0baea630b4ff7435e97f906326f601429ef618a1 (diff) | |
Do the same size-configuration bucketing on both server and client
Otherwise they get out-of-sync and sometimes AR will not relaunch
the app, but the app client will think it needs to be relaunched
Bug: 181697795
Test: app configuration tests pass.
With 3-button nav, open app in split and observe launcher
reconfigure properly.
Change-Id: Idc8d71d92d9ae107e3adb949a2137de6c08908e9
Diffstat (limited to 'core/java/android/app/ActivityClient.java')
| -rw-r--r-- | core/java/android/app/ActivityClient.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/java/android/app/ActivityClient.java b/core/java/android/app/ActivityClient.java index fbabfac706e1..633b986c06c9 100644 --- a/core/java/android/app/ActivityClient.java +++ b/core/java/android/app/ActivityClient.java @@ -25,6 +25,7 @@ import android.os.PersistableBundle; import android.os.RemoteException; import android.util.Singleton; import android.view.RemoteAnimationDefinition; +import android.window.SizeConfigurationBuckets; import com.android.internal.policy.IKeyguardDismissCallback; @@ -104,12 +105,9 @@ public class ActivityClient { } } - void reportSizeConfigurations(IBinder token, int[] horizontalSizeConfiguration, - int[] verticalSizeConfigurations, int[] smallestSizeConfigurations) { + void reportSizeConfigurations(IBinder token, SizeConfigurationBuckets sizeConfigurations) { try { - getActivityClientController().reportSizeConfigurations(token, - horizontalSizeConfiguration, verticalSizeConfigurations, - smallestSizeConfigurations); + getActivityClientController().reportSizeConfigurations(token, sizeConfigurations); } catch (RemoteException e) { e.rethrowFromSystemServer(); } |
