Skip to content

Commit

Permalink
startActivityForResult with new Intent
Browse files Browse the repository at this point in the history
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:fa5027d9c584068694bd661cf7206612756f79a3)
Merged-In: Id74e4b7ae261f2916eedaef04a679f83409a4b67
Change-Id: Id74e4b7ae261f2916eedaef04a679f83409a4b67
  • Loading branch information
Adam Bookatz authored and thestinger committed Nov 4, 2024
1 parent 54a6694 commit 1c32c8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public void onReceive(Context context, Intent intent) {
int requestCode = generateCustomActivityRequestCode(
RestrictionsResultReceiver.this.preference);
AppRestrictionsFragment.this.startActivityForResult(
restrictionsIntent, requestCode);
new Intent(restrictionsIntent), requestCode);
}
}
}
Expand Down

0 comments on commit 1c32c8b

Please sign in to comment.