Always show cert dialog after unlocked.

After the user has unlocked the credential store, we need to return
to State.INITIAL that results in always showing the chooser dialog
when resuming.

Bug: 11438552
Change-Id: I17703e786e20e9f7351d40557816db52d6b8920d
diff --git a/src/com/android/keychain/KeyChainActivity.java b/src/com/android/keychain/KeyChainActivity.java
index e7b161b..822ae1a 100644
--- a/src/com/android/keychain/KeyChainActivity.java
+++ b/src/com/android/keychain/KeyChainActivity.java
@@ -356,6 +356,7 @@
     @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
         switch (requestCode) {
             case REQUEST_UNLOCK:
+                mState = State.INITIAL;
                 if (mKeyStore.isUnlocked()) {
                     showCertChooserDialog();
                 } else {