Merge upstream commits

This commit is contained in:
Javi Rueda 2021-09-06 18:46:51 +02:00
commit 2034dc0de1
2 changed files with 6 additions and 3 deletions

View file

@ -122,8 +122,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
__32bitImplementation 'io.lbry:lbrysdk32:0.100.0'
//__64bitImplementation 'io.lbry:lbrysdk64:0.100.0'
__32bitImplementation 'io.lbry:lbrysdk32:0.102.0'
//__64bitImplementation 'io.lbry:lbrysdk64:0.102.0'
//__64bitImplementation(name: 'lbrysdk', ext: 'aar')
}

View file

@ -315,7 +315,10 @@ public class FileViewFragment extends BaseFragment implements
hideBuffering();
if (loadingNewClaim) {
MainActivity.appPlayer.setPlayWhenReady(Objects.requireNonNull((MainActivity) (getActivity())).isMediaAutoplayEnabled());
Context context = getContext();
if (context instanceof MainActivity) {
MainActivity.appPlayer.setPlayWhenReady(((MainActivity) context).isMediaAutoplayEnabled());
}
loadingNewClaim = false;
}
} else if (playbackState == Player.STATE_BUFFERING) {