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

Commit 2a21b8ad authored by voidstarstar's avatar voidstarstar Committed by Marvin W.
Browse files

Finish the activity if the app was deleted

parent 40974f80
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -99,6 +99,10 @@ public class GcmAppFragment extends ResourceSettingsFragment {

    private void updateAppDetails() {
        GcmDatabase.App app = database.getApp(packageName);
        if (app == null) {
            getActivity().finish();
            return;
        }
        PreferenceScreen root = getPreferenceScreen();

        SwitchPreference wakeForDelivery = (SwitchPreference) root.findPreference(PREF_WAKE_FOR_DELIVERY);