mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Use the correct app language when searching in the settings
This commit is contained in:
parent
2e538b8959
commit
3223ec04e3
@ -2,6 +2,7 @@ package org.schabi.newpipe.settings;
|
|||||||
|
|
||||||
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
|
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
@ -228,7 +229,9 @@ public class SettingsActivity extends AppCompatActivity implements
|
|||||||
|
|
||||||
|
|
||||||
// Build search items
|
// Build search items
|
||||||
final PreferenceParser parser = new PreferenceParser(getApplicationContext(), config);
|
final Context searchContext = getApplicationContext();
|
||||||
|
assureCorrectAppLanguage(searchContext);
|
||||||
|
final PreferenceParser parser = new PreferenceParser(searchContext, config);
|
||||||
final PreferenceSearcher searcher = new PreferenceSearcher(config);
|
final PreferenceSearcher searcher = new PreferenceSearcher(config);
|
||||||
|
|
||||||
// Find all searchable SettingsResourceRegistry fragments
|
// Find all searchable SettingsResourceRegistry fragments
|
||||||
|
Loading…
Reference in New Issue
Block a user