diff --git a/res/values/arrays.xml b/res/values/arrays.xml
new file mode 100644
index 00000000..dc35dc9f
--- /dev/null
+++ b/res/values/arrays.xml
@@ -0,0 +1,7 @@
+
+
+
+ - Play
+ - Enqueue
+
+
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b31e18e0..d279ce61 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -41,7 +41,10 @@
Enter filter text using buttons 1-9, where 1 matches 1, a, b or c, etc
Use Suggestions in Filter Text
- Use text suggestions when editing the filter text
+ Use text suggestions when editing the filter text
+
+ Default Action
+ What to do when an item is tapped
Use ScrobbleDroid API
Send song info to Last.FM scrobblers such as ScrobbleDroid and Simple Last.FM Scrobbler
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index e50ef8d7..1024eb02 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -38,6 +38,13 @@
android:title="@string/filter_suggestions_title"
android:summary="@string/filter_suggestions_summary"
android:defaultValue="false" />
+
list, View view, int pos, long id)
{
- if (mHandler.hasMessages(MSG_ITEM_CLICK, list)) {
- mHandler.removeMessages(MSG_ITEM_CLICK, list);
- sendSongIntent(((AbstractAdapter)list.getAdapter()).buildSongIntent(PlaybackService.ACTION_ENQUEUE, pos));
- } else {
- Message message = mHandler.obtainMessage(MSG_ITEM_CLICK, list);
- message.arg1 = pos;
- mHandler.sendMessageDelayed(message, 333);
- }
+ sendSongIntent(((AbstractAdapter)list.getAdapter()).buildSongIntent(mDefaultAction, pos));
}
public void afterTextChanged(Editable editable)
@@ -167,21 +163,6 @@ public class SongSelector extends TabActivity implements AdapterView.OnItemClick
}
}
- private static final int MSG_ITEM_CLICK = 0;
-
- private Handler mHandler = new Handler() {
- @Override
- public void handleMessage(Message message)
- {
- switch (message.what) {
- case MSG_ITEM_CLICK:
- AbstractAdapter adapter = (AbstractAdapter)((ListView)message.obj).getAdapter();
- sendSongIntent(adapter.buildSongIntent(PlaybackService.ACTION_PLAY, message.arg1));
- break;
- }
- }
- };
-
private static final int MENU_PLAY = 0;
private static final int MENU_ENQUEUE = 1;