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
This commit is contained in:
ykhung
2023-03-09 14:28:31 +08:00
committed by Zaiyue Xue
parent de10018301
commit 0c3957db8b

View File

@@ -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">
<intent-filter android:priority="1">
<action android:name="android.intent.action.POWER_USAGE_SUMMARY" />
<category android:name="android.intent.category.DEFAULT" />