add workarounds for blank Android Studio windows

These workarounds should fix issues with Java application windows in general.