mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-25 04:05:51 +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() {
|
private void updateAppDetails() {
|
||||||
GcmDatabase.App app = database.getApp(packageName);
|
GcmDatabase.App app = database.getApp(packageName);
|
||||||
|
if (app == null) {
|
||||||
|
getActivity().finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
PreferenceScreen root = getPreferenceScreen();
|
PreferenceScreen root = getPreferenceScreen();
|
||||||
|
|
||||||
SwitchPreference wakeForDelivery = (SwitchPreference) root.findPreference(PREF_WAKE_FOR_DELIVERY);
|
SwitchPreference wakeForDelivery = (SwitchPreference) root.findPreference(PREF_WAKE_FOR_DELIVERY);
|
||||||
|
Loading…
Reference in New Issue
Block a user