Fix setWindow for Android
Merge pull request #2222 from imurchie/isaac-contexts

Fix setWindow for Android