No longer need to explicitly hide/show list.
Change-Id: Ie5690ad76576956cb46f8dcccb734e3ccbf9ac4d
This commit is contained in:
@@ -53,9 +53,6 @@ public class FragmentListCursorLoader extends Activity {
|
|||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(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
|
// Give some text to display if there is no data. In a real
|
||||||
// application this would come from a resource.
|
// application this would come from a resource.
|
||||||
setEmptyText("No phone numbers");
|
setEmptyText("No phone numbers");
|
||||||
@@ -70,11 +67,6 @@ public class FragmentListCursorLoader extends Activity {
|
|||||||
Log.i("FragmentComplexList", "Item clicked: " + id);
|
Log.i("FragmentComplexList", "Item clicked: " + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDestroy() {
|
|
||||||
super.onDestroy();
|
|
||||||
}
|
|
||||||
|
|
||||||
static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] {
|
static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] {
|
||||||
Contacts._ID,
|
Contacts._ID,
|
||||||
Contacts.DISPLAY_NAME,
|
Contacts.DISPLAY_NAME,
|
||||||
@@ -101,7 +93,6 @@ public class FragmentListCursorLoader extends Activity {
|
|||||||
new String[] { Contacts.DISPLAY_NAME, Contacts.CONTACT_STATUS },
|
new String[] { Contacts.DISPLAY_NAME, Contacts.CONTACT_STATUS },
|
||||||
new int[] { android.R.id.text1, android.R.id.text2 });
|
new int[] { android.R.id.text1, android.R.id.text2 });
|
||||||
setListAdapter(adapter);
|
setListAdapter(adapter);
|
||||||
setListShown(true, isResumed());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user