[Android] Please review...

Edward Wang edward.c.wang at compdigitec.com
Sun Mar 2 22:22:43 CET 2014


On 2014-03-02 16:09, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> https://trac.videolan.org/vlc/attachment/ticket/10829/Async_improvements.patch
>
>

In

         // Initialize the database soon enough to avoid any race 
condition and crash
         MediaDatabase.getInstance(this);

If the purpose of this statement was to ensure the initialization of the 
database, wouldn't running it asynchronously and possibly allowing the 
user to trigger an action involving the database defeat its purpose?

Regards,
         Edward Wang


More information about the Android mailing list