misc fixes

* use getPreferredLocalization() instead of getLocalization()
* use lastest commit in build.gradle
* fix missing cast in MissionAdapter.java
This commit is contained in:
kapodamy 2018-11-15 22:30:00 -03:00
parent 6784522195
commit fef9d541ed
3 changed files with 4 additions and 3 deletions

View file

@ -376,7 +376,7 @@ public class DownloadDialog extends DialogFragment implements RadioGroup.OnCheck
}
private int getSubtitleIndexBy(List<SubtitlesStream> streams) {
Localization loc = NewPipe.getLocalization();
Localization loc = NewPipe.getPreferredLocalization();
for (int j = 0; j < 2; j++) {
for (int i = 0; i < streams.size(); i++) {
Locale streamLocale = streams.get(i).getLocale();