commit | 735c4c962a21a4ca829bde45d39644dbcac87796 | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Mon Jul 22 17:03:12 2024 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Sep 12 03:56:05 2024 +0000 |
tree | d05abaf649b636be3f06fd790b46b90c8def023e | |
parent | 2017d3e3f046b66a2dec58df178beb97e64f64fc [diff] |
startActivityForResult with new Intent Rather than use the raw Intent, we make a copy of it. See bug. Bug: 330722900 Flag: EXEMPT bugfix Test: manual Test: atest com.android.settings.users.UserSettingsTest com.android.settings.users.UserDetailsSettingsTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1189e24e47571eae86634aeaa7dc60b8fe7f4820) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:fdc595a41903f9e01595a942e8da6a05bc4fce41) Merged-In: Id74e4b7ae261f2916eedaef04a679f83409a4b67 Change-Id: Id74e4b7ae261f2916eedaef04a679f83409a4b67
diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java index db7612f..0676ec8 100644 --- a/src/com/android/settings/users/AppRestrictionsFragment.java +++ b/src/com/android/settings/users/AppRestrictionsFragment.java
@@ -655,7 +655,7 @@ int requestCode = generateCustomActivityRequestCode( RestrictionsResultReceiver.this.preference); AppRestrictionsFragment.this.startActivityForResult( - restrictionsIntent, requestCode); + new Intent(restrictionsIntent), requestCode); } } }