[Android] Check context validity while browsing

Geoffrey Métais geoffrey.metais at gmail.com
Wed Jun 22 21:41:33 CEST 2016


#Android

It's all callback based, you cannot know the state of your
activity/fragment/service/whatever when you run a threaded task.
Thus, behaviour is slightly different with some manufacturer.
e.g. : With Samsung or custom roms, we commonly have such "impossible" bugs

On Wed, Jun 22, 2016 at 8:58 PM Jean-Baptiste Kempf <jb at videolan.org> wrote:

> On 22 Jun, Geoffrey Métais wrote :
> > -                if (mReadyToDisplay) {
> > +                if (mReadyToDisplay && context != null) {
>
> How can context be null here? o_O
>
> With my kindest regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> 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/20160622/b6327fe6/attachment-0001.html>


More information about the Android mailing list