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

Commit a3799863 authored by Joel Galenson's avatar Joel Galenson
Browse files

Reload AppPermissionFragment when it is resumed.

This ensures that it picks up permission changes that happened when it
was in the background.

Fixes: 112642354
Test: Open fragment, disable permission, open the app, enable it,
switch back to the fragment, see the radio button change.
Test: Do the same but use adb to allow/revoke.

Change-Id: I314559244cd20511a63014e4144bc85d4e23567c
parent fdb6633a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -238,8 +238,6 @@ public class AppPermissionFragment extends SettingsWithLargeHeader {
            root.requireViewById(R.id.footer_all).setVisibility(View.GONE);
        }

        updateButtons();

        return root;
    }

@@ -293,6 +291,10 @@ public class AppPermissionFragment extends SettingsWithLargeHeader {
            ab.setElevation(0);
        }
        ActionBarShadowController.attachToView(activity, getLifecycle(), mNestedScrollView);

        // Re-create the permission group in case permissions have changed and update the UI.
        createAppPermissionGroup();
        updateButtons();
    }

    @Override