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

Commit c41b27d5 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Never restore any fragments from Uninstall UI

... as the state shown on the fragments might be state.

Test: atest PermissionsHostTests
Change-Id: If75d902253108e0b9ef258f939888b15df5ed503
Fixes: 73078865
parent 89480455
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -87,7 +87,9 @@ public class UninstallerActivity extends Activity {

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        // Never restore any state, esp. never create any fragments. The data in the fragment might
        // be stale, if e.g. the app was uninstalled while the activity was destroyed.
        super.onCreate(null);

        try {
            int callingUid = ActivityManager.getService().getLaunchedFromUid(getActivityToken());