mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-04-21 10:13:16 +00:00
Only show toast on Android <13
This commit is contained in:
parent
70416e73f3
commit
35abb99dac
@ -108,9 +108,13 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
||||
if (!selectedLocalization.equals(initialSelectedLocalization)
|
||||
|| !selectedContentCountry.equals(initialSelectedContentCountry)
|
||||
|| !selectedLanguage.equals(initialLanguage)) {
|
||||
Toast.makeText(requireContext(), R.string.localization_changes_requires_app_restart,
|
||||
Toast.LENGTH_LONG).show();
|
||||
|
||||
if (Build.VERSION.SDK_INT < 33) {
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
R.string.localization_changes_requires_app_restart,
|
||||
Toast.LENGTH_LONG
|
||||
).show();
|
||||
}
|
||||
NewPipe.setupLocalization(selectedLocalization, selectedContentCountry);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user