1
0
Fork 0
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:
M66B 2022-05-15 08:05:10 +02:00
parent 3c2268d33a
commit f1b4e0a57a

View file

@ -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