mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-24 11:45:50 +01:00
Finish the activity if the app was deleted
This commit is contained in:
parent
40974f806d
commit
2a21b8ad11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user