mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 08:14:45 +00:00
Added lifecycle for pinned nav menu
This commit is contained in:
parent
fe5d3177dc
commit
2fc76b481f
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue