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