Ok, thanks a lot for answering Eleni Pap. I am not very confident with debugging yet, but I have done it already in normal
Java (not Android Studio). The fact is, that I think I know, where the variable assumes true/false, because I checked it with an additional button (as a comment) and texted there the status. I made this in onClick() and outside onClick(). Outside the value is false while inside it is true.