title: Prevent EditText from focussing after rotation
body: <p>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. </p>
  
  <p>How can I preserve the keyboard visibility state upon rotation - if it was hidden before rotation then don't present it after rotation, but if it was visible before rotation then present it after rotation?</p>
  
  <pre><code>&lt;EditText
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:id="@+id/editText1"
          android:inputType="text"
          android:imeOptions="flagNoFullscreen|actionDone" /&gt;
  </code></pre>
  
  <p>I tried setting <code>android:descendantFocusability="beforeDescendants"</code> and <code>android:focusableInTouchMode="true"</code> in the parent container (RelativeLayout), but that didn't affect this behavior.</p>