mirror of https://github.com/M66B/FairEmail.git
Added lifecycle for pinned nav menu
This commit is contained in:
parent
fe5d3177dc
commit
2fc76b481f
|
@ -1021,6 +1021,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
iff.addAction(ACTION_EDIT_RULE);
|
||||
lbm.registerReceiver(receiver, iff);
|
||||
|
||||
boolean open = drawerLayout.isDrawerOpen(drawerContainer);
|
||||
Log.i("Drawer resume open=" + open);
|
||||
if (open)
|
||||
owner.start();
|
||||
|
||||
ServiceSynchronize.state(this, true);
|
||||
|
||||
checkUpdate(false);
|
||||
|
@ -1034,6 +1039,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);
|
||||
lbm.unregisterReceiver(receiver);
|
||||
|
||||
Log.i("Drawer pause");
|
||||
owner.stop();
|
||||
|
||||
ServiceSynchronize.state(this, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue