The method getScreenInfo() is synchronized, and the result may change between calls. Call it once and store the result in a local variable.
The method getScreenInfo() is synchronized, and the result may change between calls. Call it once and store the result in a local variable.