From: Lennart Rosam Date: Fri, 13 Apr 2012 13:36:25 +0000 (+0200) Subject: Ensure the user has to setup an account even if he presses the back X-Git-Tag: oc-android-1.4.3~454 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/92528fdc661522e1607ea3c7b406317cf6baafd7?ds=inline;hp=--cc Ensure the user has to setup an account even if he presses the back button on the account setup activity --- 92528fdc661522e1607ea3c7b406317cf6baafd7 diff --git a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java b/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java index 5260a5c4..0a8755f3 100644 --- a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java +++ b/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) {