From 40ee1019bcd6cff06fa408e5a99ad4ad42637aaa Mon Sep 17 00:00:00 2001 From: Lennart Rosam Date: Fri, 13 Apr 2012 19:29:30 +0200 Subject: [PATCH] Ensure, that user switching back using the task switcher also must have accounts --- .../alefzero/owncloud/ui/activity/LandingActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java b/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java index 0a8755f360..a12a31c3dd 100644 --- a/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/LandingActivity.java @@ -73,6 +73,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;