Update prefs in SongSelector in all cases
Including when we return from the prefs activity
This commit is contained in:
parent
af213a1a30
commit
7f0566eb8f
@ -119,13 +119,19 @@ public class SongSelector extends Dialog implements AdapterView.OnItemClickListe
|
|||||||
// reset queue pos
|
// reset queue pos
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
context.startService(new Intent(context, PlaybackService.class));
|
context.startService(new Intent(context, PlaybackService.class));
|
||||||
|
}
|
||||||
|
|
||||||
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(context);
|
@Override
|
||||||
int inputType = settings.getBoolean("filter_suggestions", false) ? InputType.TYPE_CLASS_TEXT : InputType.TYPE_TEXT_VARIATION_FILTER;
|
public void onWindowFocusChanged(boolean hasFocus)
|
||||||
mTextFilter.setInputType(inputType);
|
{
|
||||||
|
if (hasFocus) {
|
||||||
|
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||||
|
int inputType = settings.getBoolean("filter_suggestions", false) ? InputType.TYPE_CLASS_TEXT : InputType.TYPE_TEXT_VARIATION_FILTER;
|
||||||
|
mTextFilter.setInputType(inputType);
|
||||||
|
|
||||||
mDefaultAction = Integer.parseInt(settings.getString("default_action_int", "0"));
|
mDefaultAction = Integer.parseInt(settings.getString("default_action_int", "0"));
|
||||||
mLastActedId = 0;
|
mLastActedId = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user