From 97200cb52e9287490450be03930a304fe5178538 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 12 Jul 2010 11:41:33 -0700 Subject: [PATCH] No longer need to explicitly hide/show list. Change-Id: Ie5690ad76576956cb46f8dcccb734e3ccbf9ac4d --- .../android/apis/app/FragmentListCursorLoader.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/samples/ApiDemos/src/com/example/android/apis/app/FragmentListCursorLoader.java b/samples/ApiDemos/src/com/example/android/apis/app/FragmentListCursorLoader.java index 91c54feb1..bd49676a0 100644 --- a/samples/ApiDemos/src/com/example/android/apis/app/FragmentListCursorLoader.java +++ b/samples/ApiDemos/src/com/example/android/apis/app/FragmentListCursorLoader.java @@ -53,9 +53,6 @@ public class FragmentListCursorLoader extends Activity { public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - // Assume we don't yet have data to display. - setListShown(false, false); - // Give some text to display if there is no data. In a real // application this would come from a resource. setEmptyText("No phone numbers"); @@ -70,11 +67,6 @@ public class FragmentListCursorLoader extends Activity { Log.i("FragmentComplexList", "Item clicked: " + id); } - @Override - public void onDestroy() { - super.onDestroy(); - } - static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] { Contacts._ID, Contacts.DISPLAY_NAME, @@ -101,7 +93,6 @@ public class FragmentListCursorLoader extends Activity { new String[] { Contacts.DISPLAY_NAME, Contacts.CONTACT_STATUS }, new int[] { android.R.id.text1, android.R.id.text2 }); setListAdapter(adapter); - setListShown(true, isResumed()); } } }