From 5df0f7e2d10680da55aee040562388a9880e0216 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 10 Oct 2013 02:27:58 -0400 Subject: [PATCH] [Android] Made DirectoryActivity extend a ListActivity, since that's basically what its purpose is - to act as a list view. --- android/phoenix/res/layout/line_list.xml | 2 +- .../retroarch/browser/diractivities/DirectoryActivity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/phoenix/res/layout/line_list.xml b/android/phoenix/res/layout/line_list.xml index b86921a942..27d11ed953 100644 --- a/android/phoenix/res/layout/line_list.xml +++ b/android/phoenix/res/layout/line_list.xml @@ -1,6 +1,6 @@ diff --git a/android/phoenix/src/org/retroarch/browser/diractivities/DirectoryActivity.java b/android/phoenix/src/org/retroarch/browser/diractivities/DirectoryActivity.java index b99b79a77c..025269bd07 100644 --- a/android/phoenix/src/org/retroarch/browser/diractivities/DirectoryActivity.java +++ b/android/phoenix/src/org/retroarch/browser/diractivities/DirectoryActivity.java @@ -16,7 +16,7 @@ import android.widget.*; import android.view.*; -public class DirectoryActivity extends Activity implements AdapterView.OnItemClickListener { +public class DirectoryActivity extends ListActivity implements AdapterView.OnItemClickListener { private IconAdapter adapter; private File listedDirectory; @@ -80,7 +80,7 @@ public class DirectoryActivity extends Activity implements AdapterView.OnItemCli // Setup the list adapter = new IconAdapter(this, R.layout.line_list_item); - ListView list = (ListView) findViewById(R.id.list); + ListView list = getListView(); list.setAdapter(adapter); list.setOnItemClickListener(this);