Code cleanup: Use human readable variable names
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / activity / LandingActivity.java
index a12a31c..7e2a8c0 100644 (file)
@@ -50,12 +50,10 @@ public class LandingActivity extends SherlockFragmentActivity implements OnClick
                super.onCreate(savedInstanceState);\r
                setContentView(R.layout.main);\r
                \r
-               // Fill the grid view that is only available in portrait mode\r
+               // Fill the grid view of the landing screen with icons\r
                GridView landingScreenItems = (GridView) findViewById(R.id.homeScreenGrid);\r
-               if(landingScreenItems != null){\r
-                       landingScreenItems.setAdapter(new LandingScreenAdapter(this));\r
-                       landingScreenItems.setOnItemClickListener(this);\r
-               }\r
+               landingScreenItems.setAdapter(new LandingScreenAdapter(this));\r
+               landingScreenItems.setOnItemClickListener(this);\r
                \r
                // Check, if there are ownCloud accounts\r
                if(!accountsAreSetup()){\r
@@ -129,6 +127,7 @@ public class LandingActivity extends SherlockFragmentActivity implements OnClick
                if(intent != null ){\r
                        startActivity(intent);\r
                } else {\r
+                       // TODO: Implement all of this and make this text go away ;-)\r
                        Toast toast = Toast.makeText(this, "Not yet implemented!", Toast.LENGTH_SHORT);\r
                        toast.show();\r
                } \r