[Android] Share a single Handler

Ludovic Fauvet git at videolan.org
Wed May 29 12:24:47 CEST 2013


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed May 29 12:13:07 2013 +0200| [e480a3dc5d1d50b5c76a71f92fd743aeaaf32047] | committer: Ludovic Fauvet

Share a single Handler

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e480a3dc5d1d50b5c76a71f92fd743aeaaf32047
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index dc40881..9fab6ee 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -255,8 +255,7 @@ public class MainActivity extends SherlockFragmentActivity {
              * the info dialog. If (for any reason) the dialog is not shown,
              * open the menu after a short delay.
              */
-            final Handler handler = new Handler();
-            handler.postDelayed(new Runnable() {
+            mHandler.postDelayed(new Runnable() {
                 @Override
                 public void run() {
                     mMenu.showMenu();



More information about the Android mailing list