Notifications are no longer requested again after rotating the phone
This commit is contained in:
parent
09e4bea205
commit
c4e6e4d4c4
2 changed files with 16 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue