From 4e9aa7680d5448b13f28f837e15e0c8a7f9e5af4 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 28 Aug 2024 11:17:18 +0200 Subject: [PATCH] Fix onPause vs onStop Revert convivaAnalyticsIntegration = null --- .../analytics/convivaanalyticsexample/MainActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ConvivaExampleApp/src/main/java/com/bitmovin/analytics/convivaanalyticsexample/MainActivity.java b/ConvivaExampleApp/src/main/java/com/bitmovin/analytics/convivaanalyticsexample/MainActivity.java index 307ab69..7b31197 100644 --- a/ConvivaExampleApp/src/main/java/com/bitmovin/analytics/convivaanalyticsexample/MainActivity.java +++ b/ConvivaExampleApp/src/main/java/com/bitmovin/analytics/convivaanalyticsexample/MainActivity.java @@ -147,7 +147,7 @@ protected void onResume() { protected void onPause() { super.onPause(); if (bitmovinPlayerView != null) { - bitmovinPlayerView.onStop(); + bitmovinPlayerView.onPause(); } } @@ -167,6 +167,7 @@ protected void onDestroy() { } if (convivaAnalyticsIntegration != null) { convivaAnalyticsIntegration.release(); + convivaAnalyticsIntegration = null; } }