Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1189e24e authored by Adam Bookatz's avatar Adam Bookatz
Browse files

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
Change-Id: Id74e4b7ae261f2916eedaef04a679f83409a4b67
parent bc0b3342
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -651,7 +651,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
                    int requestCode = generateCustomActivityRequestCode(
                            RestrictionsResultReceiver.this.preference);
                    AppRestrictionsFragment.this.startActivityForResult(
                            restrictionsIntent, requestCode);
                            new Intent(restrictionsIntent), requestCode);
                }
            }
        }