|
|
|
@ -246,6 +246,12 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
|
|
|
|
drawerLayout.closeDrawer(drawerContainer);
|
|
|
|
|
onMenuPrivacy();
|
|
|
|
|
}
|
|
|
|
|
}, new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
drawerLayout.closeDrawer(drawerContainer);
|
|
|
|
|
onCleanup();
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
menus.add(new NavMenuItem(R.drawable.baseline_info_24, R.string.menu_about, new Runnable() {
|
|
|
|
@ -516,6 +522,21 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
|
|
|
|
Helper.view(this, this, Helper.getIntentPrivacy());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onCleanup() {
|
|
|
|
|
new SimpleTask<Void>() {
|
|
|
|
|
@Override
|
|
|
|
|
protected Void onExecute(Context context, Bundle args) {
|
|
|
|
|
WorkerCleanup.cleanup(context, true);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onException(Bundle args, Throwable ex) {
|
|
|
|
|
Helper.unexpectedError(ActivitySetup.this, ActivitySetup.this, ex);
|
|
|
|
|
}
|
|
|
|
|
}.execute(this, new Bundle(), "cleanup:run");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onMenuAbout() {
|
|
|
|
|
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
|
|
|
|
getSupportFragmentManager().popBackStack("about", FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
|
|
|
|