Fixed screen rotation causing crashes.

This MIGHT actually break it on all devices running <3.2. So that should be fun.