Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Use list item available since API 1
Browse files Browse the repository at this point in the history
simple_list_item_activated_1 is only available since 11.
  • Loading branch information
matthiaswenz committed Jun 9, 2015
1 parent 1a83664 commit bb11a35
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,14 @@ public void onItemSelected(String id) {
public ItemListFragment() {
}

@SuppressLint("InlinedApi")
@TargetApi(11)
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// TODO: replace with a real list adapter.
setListAdapter(new ArrayAdapter<DummyContent.DummyItem>(
getActivity(),
android.R.layout.simple_list_item_activated_1,
android.R.layout.simple_list_item_1,
android.R.id.text1,
DummyContent.ITEMS));
}
Expand Down

0 comments on commit bb11a35

Please sign in to comment.