Merge "Use .setImageURI when updating the photo Uri" into qt-dev
diff --git a/src/com/android/contacts/editor/ContactEditorFragment.java b/src/com/android/contacts/editor/ContactEditorFragment.java
index a8e3cd8..ce4b9bc 100755
--- a/src/com/android/contacts/editor/ContactEditorFragment.java
+++ b/src/com/android/contacts/editor/ContactEditorFragment.java
@@ -928,7 +928,7 @@
}
setEnabled(false);
-
+ hideSoftKeyboard();
return doSaveAction(saveMode, /* joinContactId */ null);
}
@@ -1837,4 +1837,12 @@
RESTORE_FOCUS_DELAY_MILLIS);
}
+ private void hideSoftKeyboard() {
+ InputMethodManager imm = (InputMethodManager) mContext.getSystemService(
+ Context.INPUT_METHOD_SERVICE);
+ if (imm != null && mContent != null) {
+ imm.hideSoftInputFromWindow(
+ mContent.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
+ }
+ }
}