OSDN Git Service

Prevent data usage dialog from being displayed again
authornaoyuki kato <naoyuki.x.kato@sonymobile.com>
Tue, 22 Nov 2016 04:27:11 +0000 (13:27 +0900)
committerYoshinori Hirano <Yoshinori.Hirano@sonymobile.com>
Tue, 8 Aug 2017 03:44:50 +0000 (03:44 +0000)
The data usage dialog is displayed every time rotating the device.
To solve this issue, prevent NetworkOverLimitActivity from being
re-created when rotating the device.

Bug: 36801016
Test: manual - show NetworkOverLimitActivity and rotate the device

Change-Id: I51429aa49157756107e9b3fa9d450f82f894dcab

packages/SystemUI/AndroidManifest.xml

index 3ee844c..8005ea7 100644 (file)
             android:finishOnCloseSystemDialogs="true"
             android:launchMode="singleTop"
             android:taskAffinity="com.android.systemui.net"
+            android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
             android:excludeFromRecents="true" />
 
         <!-- started from MediaProjectionManager -->