Ensure, that user switching back using the task switcher also must have

accounts
This commit is contained in:
Lennart Rosam 2012-04-13 19:29:30 +02:00
parent 92528fdc66
commit 40ee1019bc

View file

@ -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;