commit | 239023d13da84fc8447563d9b38e81db6b98e3d0 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Sep 23 03:46:47 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Sep 23 03:46:47 2021 +0000 |
tree | 95e5a856c306a0170148baa6609b1752203d01fc | |
parent | 70b2d886828a373296474002a3b514f7347dce26 [diff] | |
parent | e7ebddb87d937d8d24f2321c41230e8ab87f3721 [diff] |
Merge "Merge intent extra to deep link intent target for large screen devices" into sc-v2-dev am: 4223ee98ea am: e7ebddb87d Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15824476 Change-Id: I374926b60b58d2867dd9553bf962911a7493540c
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index b82bb76..d5730a1 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java
@@ -380,6 +380,7 @@ // It's a deep link intent, SettingsHomepageActivity will set SplitPairRule and start it. final Intent trampolineIntent = new Intent(android.provider.Settings.ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK); + trampolineIntent.replaceExtras(intent); trampolineIntent.putExtra( android.provider.Settings.EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_URI, intent.toUri(Intent.URI_INTENT_SCHEME));
diff --git a/src/com/android/settings/homepage/SettingsHomepageActivity.java b/src/com/android/settings/homepage/SettingsHomepageActivity.java index c065c75..5df7b7a 100644 --- a/src/com/android/settings/homepage/SettingsHomepageActivity.java +++ b/src/com/android/settings/homepage/SettingsHomepageActivity.java
@@ -213,6 +213,9 @@ targetIntent.setFlags(targetIntent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK); + // Sender of intent may want to send intent extra data to the destination of targetIntent. + targetIntent.replaceExtras(intent); + targetIntent.putExtra(EXTRA_IS_FROM_SETTINGS_HOMEPAGE, true); // Set 2-pane pair rule for the deep link page.