Conditionally refresh

This commit is contained in:
M66B 2019-08-12 16:11:06 +02:00
parent e99ed12590
commit 25c7d1d33a
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
protected void onExecuted(Bundle args, Boolean hasAccounts) {
if (hasAccounts) {
Intent view = new Intent(ActivityMain.this, ActivityView.class);
view.putExtra("refresh", true);
if (ACTION_REFRESH.equals(getIntent().getAction()))
view.putExtra("refresh", true);
startActivity(view);
ServiceSynchronize.watchdog(ActivityMain.this);
ServiceSend.watchdog(ActivityMain.this);