mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Call service/state at right moment
This commit is contained in:
parent
3c2268d33a
commit
f1b4e0a57a
1 changed files with 2 additions and 4 deletions
|
@ -1045,6 +1045,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
ServiceSynchronize.state(this, true);
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);
|
||||
IntentFilter iff = new IntentFilter();
|
||||
|
@ -1065,14 +1066,13 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
if (open)
|
||||
owner.start();
|
||||
|
||||
ServiceSynchronize.state(this, true);
|
||||
|
||||
checkUpdate(false);
|
||||
checkIntent();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
ServiceSynchronize.state(this, false);
|
||||
super.onPause();
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);
|
||||
|
@ -1080,8 +1080,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
|
||||
Log.i("Drawer pause");
|
||||
owner.stop();
|
||||
|
||||
ServiceSynchronize.state(this, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue