Merge "Do not schedule relaunch for local activities"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e25aa04eeb
@@ -4970,7 +4970,8 @@ public final class ActivityThread extends ClientTransactionHandler {
|
||||
private void relaunchAllActivities(boolean preserveWindows) {
|
||||
for (Map.Entry<IBinder, ActivityClientRecord> entry : mActivities.entrySet()) {
|
||||
final ActivityClientRecord r = entry.getValue();
|
||||
if (!r.activity.mFinished) {
|
||||
// Schedule relaunch the activity if it is not a local object or finishing.
|
||||
if (!r.activity.mFinished && !(r.token instanceof Binder)) {
|
||||
if (preserveWindows && r.window != null) {
|
||||
r.mPreserveWindow = true;
|
||||
}
|
||||
|
||||
@@ -4006,8 +4006,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
synchronized (mGlobalLock) {
|
||||
ActivityRecord record = ActivityRecord.isInStackLocked(token);
|
||||
if (record == null) {
|
||||
throw new IllegalArgumentException("reportSizeConfigurations: ActivityRecord not "
|
||||
+ "found for: " + token);
|
||||
return;
|
||||
}
|
||||
record.setSizeConfigurations(horizontalSizeConfiguration,
|
||||
verticalSizeConfigurations, smallestSizeConfigurations);
|
||||
|
||||
Reference in New Issue
Block a user