summaryrefslogtreecommitdiff
path: root/core/java/android/app/ApplicationThreadNative.java
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-12-04 12:43:36 -0800
committerFilip Gruszczynski <gruszczy@google.com>2015-12-04 17:14:52 -0800
commitca66481244913c4a17b62c3ddff214d2ca72c439 (patch)
tree08bd6afcbd3b3032c9f26b14b38c6ef60953e4b3 /core/java/android/app/ApplicationThreadNative.java
parente920098f31860824ca714f10b2e72dbff5442184 (diff)
Update client configuration when resizing without crossing size threshold.
Even though the activity won't be relaunched and won't receive a callback about the resize, we still need to update it's configuration. Otherwise when the application queries for it, it will receive wrong data. Bug: 23904868 Change-Id: I601e91b8e71691c1cb5edb2734894441c4fde8e2
Diffstat (limited to 'core/java/android/app/ApplicationThreadNative.java')
-rw-r--r--core/java/android/app/ApplicationThreadNative.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/app/ApplicationThreadNative.java b/core/java/android/app/ApplicationThreadNative.java
index bfd9ca52e90d..44387deaddc1 100644
--- a/core/java/android/app/ApplicationThreadNative.java
+++ b/core/java/android/app/ApplicationThreadNative.java
@@ -420,7 +420,8 @@ public abstract class ApplicationThreadNative extends Binder
if (data.readInt() != 0) {
overrideConfig = Configuration.CREATOR.createFromParcel(data);
}
- scheduleActivityConfigurationChanged(b, overrideConfig);
+ final boolean reportToActivity = data.readInt() == 1;
+ scheduleActivityConfigurationChanged(b, overrideConfig, reportToActivity);
return true;
}
@@ -1169,8 +1170,8 @@ class ApplicationThreadProxy implements IApplicationThread {
}
@Override
- public final void scheduleActivityConfigurationChanged(
- IBinder token, Configuration overrideConfig) throws RemoteException {
+ public final void scheduleActivityConfigurationChanged(IBinder token,
+ Configuration overrideConfig, boolean reportToActivity) throws RemoteException {
Parcel data = Parcel.obtain();
data.writeInterfaceToken(IApplicationThread.descriptor);
data.writeStrongBinder(token);
@@ -1180,6 +1181,7 @@ class ApplicationThreadProxy implements IApplicationThread {
} else {
data.writeInt(0);
}
+ data.writeInt(reportToActivity ? 1 : 0);
mRemote.transact(SCHEDULE_ACTIVITY_CONFIGURATION_CHANGED_TRANSACTION, data, null,
IBinder.FLAG_ONEWAY);
data.recycle();