I discover during debbuging my android app the strange behaviour.
There is expression:
if (r == true)
where var r has the value true but the whole statement is false. I try to use object Boolean and also primitive type boolean.
I'm sure that I make some basic mistake.
Here is the screen from debbuger.

Edit:
I'm using java.lang.Boolean.
method isSyncRequired returns Boolean.TRUE and it is compared in if-else block.
if(isSyncRequired(s))
if (r)
if (r == true)
dont't work.