[Android] [PATCH 1/2] VLCApplication: deprecate runBackground

Geoffrey Métais geoffrey.metais at gmail.com
Thu Jun 23 09:05:07 CEST 2016


What's the point?

We specifically created a threadpool to not do such heavy operations for
list display and other loop operations.

On Wed, Jun 22, 2016 at 11:11 PM Thomas Guillem <thomas at gllm.fr> wrote:

> ---
>  vlc-android/src/org/videolan/vlc/VLCApplication.java | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java
> b/vlc-android/src/org/videolan/vlc/VLCApplication.java
> index 613fd86..d501133 100644
> --- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
> +++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
> @@ -165,10 +165,17 @@ public class VLCApplication extends Application {
>          return sTV || mSettings.getBoolean("tv_ui", false);
>      }
>
> +    /*
> +     * @deprecated
> +     * Use an Android AsyncTask instead. This class allows to perform
> background operations and
> +     * publish results on the UI thread without having to manipulate
> threads and/or handlers.
> +     */
> +    @Deprecated
>      public static void runBackground(Runnable runnable) {
>          instance.mThreadPool.execute(runnable);
>      }
>
> +    @Deprecated
>      public static boolean removeTask(Runnable runnable) {
>          return instance.mThreadPool.remove(runnable);
>      }
> --
> 2.8.1
>
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20160623/aaa6e18e/attachment.html>


More information about the Android mailing list