|
@@ -455,9 +455,16 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
|
|
|
UserInfoActivity.openAccountRemovalConfirmationDialog(getAccount(), getFragmentManager(), true);
|
|
|
break;
|
|
|
case R.id.drawer_menu_account_add:
|
|
|
- Intent firstRunIntent = new Intent(getApplicationContext(), FirstRunActivity.class);
|
|
|
- firstRunIntent.putExtra(FirstRunActivity.EXTRA_ALLOW_CLOSE, true);
|
|
|
- startActivity(firstRunIntent);
|
|
|
+ boolean isProviderOrOwnInstallationVisible = getResources()
|
|
|
+ .getBoolean(R.bool.show_provider_or_own_installation);
|
|
|
+
|
|
|
+ if (isProviderOrOwnInstallationVisible) {
|
|
|
+ Intent firstRunIntent = new Intent(getApplicationContext(), FirstRunActivity.class);
|
|
|
+ firstRunIntent.putExtra(FirstRunActivity.EXTRA_ALLOW_CLOSE, true);
|
|
|
+ startActivity(firstRunIntent);
|
|
|
+ } else {
|
|
|
+ createAccount(false);
|
|
|
+ }
|
|
|
break;
|
|
|
case R.id.drawer_menu_account_manage:
|
|
|
Intent manageAccountsIntent = new Intent(getApplicationContext(), ManageAccountsActivity.class);
|