From: Lennart Rosam Date: Fri, 13 Apr 2012 17:29:30 +0000 (+0200) Subject: Ensure, that user switching back using the task switcher also must have X-Git-Tag: oc-android-1.4.3~453 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/40ee1019bcd6cff06fa408e5a99ad4ad42637aaa?hp=-c Ensure, that user switching back using the task switcher also must have accounts --- 40ee1019bcd6cff06fa408e5a99ad4ad42637aaa diff --git a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java b/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java index 0a8755f3..a12a31c3 100644 --- a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java @@ -74,6 +74,15 @@ public class LandingActivity extends SherlockFragmentActivity implements OnClick } @Override + protected void onRestoreInstanceState(Bundle savedInstanceState) { + super.onRestoreInstanceState(savedInstanceState); + // Check, if there are ownCloud accounts + if(!accountsAreSetup()){ + showDialog(DIALOG_SETUP_ACCOUNT); + } + } + + @Override protected Dialog onCreateDialog(int id) { Dialog dialog; switch(id){