Prevent EditText from focussing after rotation
问题 I've implemented a simple EditText that provides a Done button to hide the keyboard and upon rotating to landscape it does not present a full screen dialog for the EditText. But there's a problem. When I tap Done to dismiss the keyboard then I rotate the device to landscape, the keyboard appears. If I dismiss it again then rotate to portrait the keyboard appears yet again. How can I preserve the keyboard visibility state upon rotation - if it was hidden before rotation then don't present it