Przeglądaj źródła

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

Lennart Rosam 13 lat temu
rodzic
commit
92528fdc66

+ 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) {