squashed commit
This commit is contained in:
parent
8e152df46d
commit
3108c903dd
|
@ -290,8 +290,13 @@ public abstract class VideoPlayer extends BasePlayer
|
|||
|
||||
String userPreferredLanguage = PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getString(context.getString(R.string.caption_user_set_key), null);
|
||||
// english (auto-generated)
|
||||
boolean searchForAutogenerated = userPreferredLanguage == null ||
|
||||
/*
|
||||
* only search for autogenerated cc as fallback
|
||||
* if "(auto-generated)" was not already selected
|
||||
* we are only looking for "(" instead of "(auto-generated)" to hopefully get all
|
||||
* internationalized variants such as "(automatisch-erzeugt)" and so on
|
||||
*/
|
||||
boolean searchForAutogenerated = userPreferredLanguage != null &&
|
||||
!userPreferredLanguage.contains("(");
|
||||
|
||||
// Add option for turning off caption
|
||||
|
|
Loading…
Reference in New Issue