Notifications are no longer requested again after rotating the phone

This commit is contained in:
Isaac 2025-10-19 03:41:52 +11:00
parent 09e4bea205
commit c4e6e4d4c4
2 changed files with 16 additions and 3 deletions

View file

@ -66,12 +66,21 @@ public class App extends Application {
private boolean isFirstRun = false;
private static App app;
private boolean notificationsRequested = false;
@NonNull
public static App getApp() {
return app;
}
public boolean getNotificationsRequested() {
return notificationsRequested;
}
public void setNotificationsRequested() {
notificationsRequested = true;
}
@Override
protected void attachBaseContext(final Context base) {
super.attachBaseContext(base);