From 7d5bf33dfce817144e52910c094e8a099d17b1d3 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Mon, 13 Jan 2020 13:34:09 +0800 Subject: [PATCH] Set last report configuration when attaching process The process has received the configuration after bindApplication. It is unnecessary to send a process configuration change by an uninitialized last configuration from starting activity (realStartActivityLocked -> r.setProcess). Also remove a duplicated invocation of updateConfiguration because super.onRequestedOverrideConfigurationChanged has called onConfigurationChanged that also calls updateConfiguration. Bug: 148604688 Test: atest WindowProcessControllerTests Test: Enable trace and launch an activity. There should not have a configChange between bindApplication and activityStart. Change-Id: I7afa1278728fbb996f06d74023cc00930eadd3fc --- .../server/wm/WindowProcessController.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/services/core/java/com/android/server/wm/WindowProcessController.java b/services/core/java/com/android/server/wm/WindowProcessController.java index 87b04b2ae68f8..c7d00ec5daabc 100644 --- a/services/core/java/com/android/server/wm/WindowProcessController.java +++ b/services/core/java/com/android/server/wm/WindowProcessController.java @@ -178,7 +178,7 @@ public class WindowProcessController extends ConfigurationContainer