diff --git a/app/build.gradle b/app/build.gradle index 03906cd7..05813c30 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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') } diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java index 0bd40d98..dd37550d 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java @@ -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) {