Recently Android Studio went completely insane by doing completely illogical stuff. Look at the prints in the console:
I/System.out: 0 + 518 < 518 is true
I/System.out: 518 + 518 < 518 is true
then look at the code:
System.out.print(j + " + " + squareSize + " < " + squareWidth);
if (j + squareSize < screenSizeY) {
squareHeight = squareSize;
System.out.print(" is true");
} else {
squareHeight = screenSizeY - j;
System.out.print(" is false");
}
There are no other Threads that might change these variables. Did I oversee something obvious or did Android Studio just drink too much last night?
Look at these two lines:
(j + " + " + squareSize + " < " + squareWidth)
and
if (j + squareSize < screenSizeY)
if squareWidth is equal with screenSizeY then AS is drunk, else it is not :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With