[Android] Don't post updates once activity is hidden

Geoffrey Métais git at videolan.org
Thu Apr 20 16:32:24 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 20 16:32:02 2017 +0200| [6d9d4b45a53d0ac3a08f8d86cdf6acda80b7c1e9] | committer: Geoffrey Métais

Don't post updates once activity is hidden

> https://code.videolan.org/videolan/vlc-android/commit/6d9d4b45a53d0ac3a08f8d86cdf6acda80b7c1e9
---

 vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index ce699c9..530cc18 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -424,6 +424,8 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
 
         @Override
         protected void onPostExecute(Void result) {
+            if (!isVisible())
+                return;
             mHandler.sendEmptyMessage(HIDE_LOADING);
             mVideoAdapter = new ArrayObjectAdapter(
                     new CardPresenter(mContext));



More information about the Android mailing list