by Max Leiberman
Version 2 (July 11, 2017)
Download (91 downloads)
This flow uses ui automation to automatically switch keyboards when screen orientation changes via the system input method selector dialog, tested on redmi note 4 android 6 miui 8, change the notification title (blocks 4,7) and keyboard names (blocks 41,42) and it might just work for you :)
Update 10 july 2017: managed to remove annoying delay, much faster now and you won't even notice the dialog most of the time, also significantly reduced number of blocks