diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0672e1cb..5111d3ce 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -3,7 +3,6 @@
Vanilla Music
Enqueued %s
- Filter:
No songs found on your device.
Preferences
Add to Queue
@@ -15,6 +14,7 @@
Audio Output
Notifications
+ Song Selector
Miscellaneous Features
External Output Only
@@ -30,6 +30,9 @@
Persistent Notification
Always display the notification
+ Use Phone Dialer Input
+ Enter filter text using buttons 1-9, where 1 matches 1, a, b or c, etc
+
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 4d26de55..1d3cc3d6 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -27,6 +27,13 @@
android:defaultValue="true"
android:summary="@string/notify_while_paused_summary" />
+
+
+
= 0 && value < 9)
+ int value = c - '2';
+ if (value >= 0 && value < 8)
patternString += mRanges[value];
else
patternString += c;
diff --git a/src/org/kreed/vanilla/SongSelector.java b/src/org/kreed/vanilla/SongSelector.java
index 9713d3e5..683264ce 100644
--- a/src/org/kreed/vanilla/SongSelector.java
+++ b/src/org/kreed/vanilla/SongSelector.java
@@ -22,8 +22,11 @@ import org.kreed.vanilla.R;
import android.app.Activity;
import android.content.Intent;
+import android.content.SharedPreferences;
import android.os.Bundle;
+import android.preference.PreferenceManager;
import android.text.Editable;
+import android.text.InputType;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
@@ -51,6 +54,12 @@ public class SongSelector extends Activity implements AdapterView.OnItemClickLis
mTextView = (TextView)findViewById(R.id.filter_text);
mTextView.addTextChangedListener(this);
+
+ SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
+ boolean phoneInput = settings.getBoolean("phone_input", false);
+ int inputType = phoneInput ? InputType.TYPE_CLASS_PHONE
+ : InputType.TYPE_CLASS_TEXT;
+ mTextView.setInputType(inputType);
}
@Override