mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Added option to disable notifying in the foreground
This commit is contained in:
@@ -625,6 +625,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
iff.addAction(ACTION_EDIT_RULE);
|
||||
lbm.registerReceiver(receiver, iff);
|
||||
|
||||
ServiceSynchronize.state(this, true);
|
||||
|
||||
checkUpdate(false);
|
||||
checkIntent();
|
||||
}
|
||||
@@ -632,8 +634,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);
|
||||
lbm.unregisterReceiver(receiver);
|
||||
|
||||
ServiceSynchronize.state(this, false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user