[Android] Add removeTask() for app threadpool

Geoffrey Métais git at videolan.org
Mon Jan 4 12:13:22 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan  4 11:58:23 2016 +0100| [708d914da2df08d816c9418fd4ca2d3798971220] | committer: Geoffrey Métais

Add removeTask() for app threadpool

> https://code.videolan.org/videolan/vlc-android/commit/708d914da2df08d816c9418fd4ca2d3798971220
---

 vlc-android/src/org/videolan/vlc/VLCApplication.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index cf919bd..d28d8e3 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -121,4 +121,8 @@ public class VLCApplication extends Application {
     public static void runBackground(Runnable runnable) {
         instance.mThreadPool.execute(runnable);
     }
+
+    public static boolean removeTask(Runnable runnable) {
+        return instance.mThreadPool.remove(runnable);
+    }
 }



More information about the Android mailing list