[Android] LeakHandler -> WeakHandler
Ludovic Fauvet
git at videolan.org
Wed May 29 13:44:59 CEST 2013
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed May 29 13:43:10 2013 +0200| [316dc8346989bc057b1c404ec96489d6c5c083f7] | committer: Ludovic Fauvet
LeakHandler -> WeakHandler
Pointed out by Sébastien.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=316dc8346989bc057b1c404ec96489d6c5c083f7
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 9fab6ee..89e1901 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -29,6 +29,7 @@ import org.videolan.vlc.MediaLibrary;
import org.videolan.vlc.R;
import org.videolan.vlc.Util;
import org.videolan.vlc.VLCCallbackTask;
+import org.videolan.vlc.WeakHandler;
import org.videolan.vlc.gui.SidebarAdapter.SidebarEntry;
import org.videolan.vlc.gui.video.VideoListAdapter;
import org.videolan.vlc.interfaces.ISortable;
@@ -616,7 +617,7 @@ public class MainActivity extends SherlockFragmentActivity {
}
};
- private final Handler mHandler = new Handler() {
+ private final WeakHandler<MainActivity> mHandler = new WeakHandler<MainActivity>(this) {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
More information about the Android
mailing list