We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a295f0 commit eba0951Copy full SHA for eba0951
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java
@@ -274,6 +274,25 @@ public void onSaveInstanceState(@NonNull final Bundle outState) {
274
}
275
276
277
+ @Override
278
+ public void onPrimaryNavigationFragmentChanged(final boolean isPrimaryNavigationFragment) {
279
+ if (!isPrimaryNavigationFragment) {
280
+ final Media media = viewModel.getMedia();
281
+ switch (media.getType()) {
282
+ case MEDIA_TYPE_VIDEO:
283
+ if (videoPlayerViewHelper != null) {
284
+ videoPlayerViewHelper.pause();
285
+ }
286
+ return;
287
+ case MEDIA_TYPE_SLIDER:
288
+ if (sliderItemsAdapter != null) {
289
+ pauseSliderPlayer();
290
291
+ default:
292
293
294
295
+
296
private void init() {
297
final Bundle arguments = getArguments();
298
if (arguments == null) {
0 commit comments