From f7234050321371619d52ad0ff7efc76d22099702 Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Thu, 25 Feb 2021 19:02:52 +0100 Subject: [PATCH] Fix for media been always autoplayed when opened from miniplayer --- .../io/lbry/browser/ui/findcontent/FileViewFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ed8703dc..b2248c62 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 @@ -291,7 +291,6 @@ public class FileViewFragment extends BaseFragment implements if (!playbackStarted) { logPlay(currentUrl, startTimeMillis); playbackStarted = true; - isPlaying = true; long lastPosition = loadLastPlaybackPosition(); if (lastPosition > -1) { @@ -340,6 +339,11 @@ public class FileViewFragment extends BaseFragment implements hideBuffering(); } } + + @Override + public void onIsPlayingChanged(boolean isPlayng) { + isPlaying = isPlayng; + } }; return root;