+ // Fill the grid view that is only available in portrait mode\r
+ GridView landingScreenItems = (GridView) findViewById(R.id.homeScreenGrid);\r
+ if(landingScreenItems != null){\r
+ landingScreenItems.setAdapter(new LandingScreenAdapter(this));\r
+ landingScreenItems.setOnItemClickListener(this);\r
+ }\r
+ \r
+ // Check, if there are ownCloud accounts\r
+ if(!accountsAreSetup()){\r
+ showDialog(DIALOG_SETUP_ACCOUNT);\r
+ }\r
+\r
+ }\r
+ \r
+ @Override\r
+ protected void onRestart() {\r
+ super.onRestart();\r