Skip to content

Commit 3223ec0

Browse files
committed
Use the correct app language when searching in the settings
1 parent 2e538b8 commit 3223ec0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/settings/SettingsActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
44

5+
import android.content.Context;
56
import android.os.Bundle;
67
import android.text.TextUtils;
78
import android.util.Log;
@@ -228,7 +229,9 @@ private void initSearch(
228229

229230

230231
// Build search items
231-
final PreferenceParser parser = new PreferenceParser(getApplicationContext(), config);
232+
final Context searchContext = getApplicationContext();
233+
assureCorrectAppLanguage(searchContext);
234+
final PreferenceParser parser = new PreferenceParser(searchContext, config);
232235
final PreferenceSearcher searcher = new PreferenceSearcher(config);
233236

234237
// Find all searchable SettingsResourceRegistry fragments

0 commit comments

Comments
 (0)