Browse Source

Pause story player in onPause instead of releasing it. Fixes austinhuang0131/barinsta#1060

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
37edc0171e
  1. 4
      app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java

4
app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java

@ -275,7 +275,9 @@ public class StoryViewerFragment extends Fragment {
@Override @Override
public void onPause() { public void onPause() {
super.onPause(); super.onPause();
releasePlayer();
if (player != null) {
player.pause();
}
} }
@Override @Override

Loading…
Cancel
Save