From 37edc0171e5e8d05bfdd78d53380ee1ef4087973 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sat, 15 May 2021 13:27:51 +0900 Subject: [PATCH] Pause story player in onPause instead of releasing it. Fixes austinhuang0131/barinsta#1060 --- .../awais/instagrabber/fragments/StoryViewerFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java index 5ef039c7..5cc6887b 100644 --- a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java @@ -275,7 +275,9 @@ public class StoryViewerFragment extends Fragment { @Override public void onPause() { super.onPause(); - releasePlayer(); + if (player != null) { + player.pause(); + } } @Override