From bb11a35468fd3fc4c3b409cc149a24dad8fdb92a Mon Sep 17 00:00:00 2001 From: Matthias Wenz Date: Tue, 9 Jun 2015 13:31:36 +0200 Subject: [PATCH] Use list item available since API 1 simple_list_item_activated_1 is only available since 11. --- .../applicationinsights/appsample/ItemListFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app-sample/src/main/java/com/microsoft/applicationinsights/appsample/ItemListFragment.java b/app-sample/src/main/java/com/microsoft/applicationinsights/appsample/ItemListFragment.java index 83f7529..b896875 100644 --- a/app-sample/src/main/java/com/microsoft/applicationinsights/appsample/ItemListFragment.java +++ b/app-sample/src/main/java/com/microsoft/applicationinsights/appsample/ItemListFragment.java @@ -72,8 +72,6 @@ public void onItemSelected(String id) { public ItemListFragment() { } - @SuppressLint("InlinedApi") - @TargetApi(11) @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -81,7 +79,7 @@ public void onCreate(Bundle savedInstanceState) { // TODO: replace with a real list adapter. setListAdapter(new ArrayAdapter( getActivity(), - android.R.layout.simple_list_item_activated_1, + android.R.layout.simple_list_item_1, android.R.id.text1, DummyContent.ITEMS)); }