Add android:configChanges for SettingsHomepageActivity am: fdfac783ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15777510 Change-Id: I209e5a92a20770bc7ecba9ecfc65385c0d8e7b4e
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
android:taskAffinity="com.android.settings.root"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true"
|
||||
android:configChanges="keyboard|keyboardHidden">
|
||||
android:configChanges="keyboard|keyboardHidden|screenSize|screenLayout">
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
@@ -208,6 +208,9 @@ public class SettingsHomepageActivity extends FragmentActivity implements
|
||||
return;
|
||||
}
|
||||
|
||||
// To prevent launchDeepLinkIntentToRight again for configuration change.
|
||||
intent.setAction(null);
|
||||
|
||||
targetIntent.setFlags(targetIntent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
|
||||
targetIntent.putExtra(EXTRA_IS_FROM_SETTINGS_HOMEPAGE, true);
|
||||
|
Reference in New Issue
Block a user