Browse Source

Ensure the user has to setup an account even if he presses the back
button on the account setup activity

Lennart Rosam 13 years ago
parent
commit
92528fdc66
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/eu/alefzero/owncloud/ui/activity/LandingActivity.java

+ 9 - 0
src/eu/alefzero/owncloud/ui/activity/LandingActivity.java

@@ -63,6 +63,15 @@ public class LandingActivity extends SherlockFragmentActivity implements OnClick
 		}
 
 	}
+	
+	@Override
+	protected void onRestart() {
+		super.onRestart();
+		// Check, if there are ownCloud accounts
+		if(!accountsAreSetup()){
+			showDialog(DIALOG_SETUP_ACCOUNT);
+		}
+	}
 
 	@Override
 	protected Dialog onCreateDialog(int id) {