Fixed screen orientation lock on tablets, more bug fixes

https://github.com/DrKLO/Telegram/pull/453