messy rename file
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / fragment / LandingPageFragment.java
index eaa6f5e..f5649a0 100644 (file)
@@ -17,8 +17,9 @@
  */\r
 package eu.alefzero.owncloud.ui.fragment;\r
 \r
+import com.actionbarsherlock.app.SherlockFragment;\r
+\r
 import android.os.Bundle;\r
-import android.support.v4.app.Fragment;\r
 import android.view.LayoutInflater;\r
 import android.view.View;\r
 import android.view.ViewGroup;\r
@@ -28,30 +29,30 @@ import eu.alefzero.owncloud.ui.activity.LandingActivity;
 import eu.alefzero.owncloud.ui.adapter.LandingScreenAdapter;\r
 \r
 /**\r
- * Used on the Landing page to display what Components of \r
- * the ownCloud there are. Like Files, Music, Contacts, etc.\r
+ * Used on the Landing page to display what Components of the ownCloud there\r
+ * are. Like Files, Music, Contacts, etc.\r
  * \r
  * @author Lennart Rosam\r
- *\r
+ * \r
  */\r
-public class LandingPageFragment extends Fragment {\r
+public class LandingPageFragment extends SherlockFragment {\r
+\r
+    @Override\r
+    public View onCreateView(LayoutInflater inflater, ViewGroup container,\r
+            Bundle savedInstanceState) {\r
+        View root = inflater.inflate(R.layout.landing_page_fragment, container);\r
+        return root;\r
+    }\r
 \r
-       @Override\r
-       public View onCreateView(LayoutInflater inflater, ViewGroup container,\r
-                       Bundle savedInstanceState) {\r
-               View root = inflater.inflate(R.layout.landing_page_fragment, container);\r
-               return root;\r
-       }\r
+    @Override\r
+    public void onActivityCreated(Bundle savedInstanceState) {\r
+        super.onActivityCreated(savedInstanceState);\r
 \r
+        ListView landingScreenItems = (ListView) getView().findViewById(\r
+                R.id.homeScreenList);\r
+        landingScreenItems.setAdapter(new LandingScreenAdapter(getActivity()));\r
+        landingScreenItems\r
+                .setOnItemClickListener((LandingActivity) getActivity());\r
+    }\r
 \r
-       @Override\r
-       public void onActivityCreated(Bundle savedInstanceState) {\r
-               super.onActivityCreated(savedInstanceState);\r
-               \r
-               ListView landingScreenItems = (ListView) getView().findViewById(R.id.homeScreenList);\r
-               landingScreenItems.setAdapter(new LandingScreenAdapter(getActivity()));\r
-               landingScreenItems.setOnItemClickListener((LandingActivity) getActivity());\r
-       }\r
-       \r
-               \r
 }\r