Finish the activity if the app was deleted

This commit is contained in:
voidstarstar 2019-04-02 11:11:44 -04:00 committed by Marvin W
parent 40974f806d
commit 2a21b8ad11

View File

@ -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);