From 0c3957db8b7b1233bb7876195b9de4671520b711 Mon Sep 17 00:00:00 2001 From: ykhung Date: Thu, 9 Mar 2023 14:28:31 +0800 Subject: [PATCH] Add configChanges for PowerUsageSummaryActivity for rotation Add configChanges to avoid the battery settings main page is recreated while rotating the device to improve rotation performance, but we still need to investigate the PowerUsageAdvanced re-create case Bug: 271380711 Test: presubmit & manual Change-Id: I7629de89d9d23b08fc82369e1f9f79081e99625a --- AndroidManifest.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d82fc942dff..dc519e95928 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -3073,7 +3073,8 @@ android:name="Settings$PowerUsageSummaryActivity" android:label="@string/power_usage_summary_title" android:exported="true" - android:icon="@drawable/ic_homepage_battery"> + android:icon="@drawable/ic_homepage_battery" + android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize">