Delay checking intent for primary inbox

pull/215/head
M66B 8 months ago
parent 145b5c9214
commit ec888beb85

@ -155,6 +155,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
private AdapterNavMenu adapterNavMenu; private AdapterNavMenu adapterNavMenu;
private AdapterNavMenu adapterNavMenuExtra; private AdapterNavMenu adapterNavMenuExtra;
private boolean initialized = false;
private boolean exit = false; private boolean exit = false;
private boolean searching = false; private boolean searching = false;
private int lastBackStackCount = 0; private int lastBackStackCount = 0;
@ -781,6 +782,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if ("inbox".equals(startup)) { if ("inbox".equals(startup)) {
new SimpleTask<EntityFolder>() { new SimpleTask<EntityFolder>() {
@Override
protected void onPreExecute(Bundle args) {
initialized = false;
}
@Override @Override
protected EntityFolder onExecute(Context context, Bundle args) throws Throwable { protected EntityFolder onExecute(Context context, Bundle args) throws Throwable {
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
@ -797,6 +803,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
fragment.setArguments(args); fragment.setArguments(args);
setFragment(fragment); setFragment(fragment);
checkIntent();
initialized = true;
} }
@Override @Override
@ -1158,6 +1166,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
checkUpdate(false); checkUpdate(false);
checkAnnouncements(false); checkAnnouncements(false);
if (initialized || !"inbox".equals(startup))
checkIntent(); checkIntent();
} }

Loading…
Cancel
Save