Loading src/com/android/contacts/activities/ContactEditorBaseActivity.java +5 −3 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ import android.os.Bundle; import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.RawContacts; import android.util.Log; import android.view.View; import android.view.inputmethod.InputMethodManager; import java.util.ArrayList; Loading Loading @@ -228,9 +229,10 @@ abstract public class ContactEditorBaseActivity extends ContactsActivity @Override protected void onPause() { super.onPause(); InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); if (imm != null) { imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); final InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); final View currentFocus = getCurrentFocus(); if (imm != null && currentFocus != null) { imm.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0); } } Loading Loading
src/com/android/contacts/activities/ContactEditorBaseActivity.java +5 −3 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ import android.os.Bundle; import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.RawContacts; import android.util.Log; import android.view.View; import android.view.inputmethod.InputMethodManager; import java.util.ArrayList; Loading Loading @@ -228,9 +229,10 @@ abstract public class ContactEditorBaseActivity extends ContactsActivity @Override protected void onPause() { super.onPause(); InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); if (imm != null) { imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); final InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); final View currentFocus = getCurrentFocus(); if (imm != null && currentFocus != null) { imm.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0); } } Loading