Reset the queue position when the song selector opens

This is what the old behavior did
This commit is contained in:
Christopher Eby committed 2010-04-11 19:26:21 -05:00
1 parent acfc656cb9
commit af213a1a30
1 file changed
+5 -1
+5 -1
View File
@@ -116,7 +116,11 @@ public class SongSelector extends Dialog implements AdapterView.OnItemClickListe
@Override
public void onStart()
{
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getContext());
// reset queue pos
Context context = getContext();
context.startService(new Intent(context, PlaybackService.class));
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(context);
int inputType = settings.getBoolean("filter_suggestions", false) ? InputType.TYPE_CLASS_TEXT : InputType.TYPE_TEXT_VARIATION_FILTER;
mTextFilter.setInputType(inputType);