You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticvoidhideKeyboard(Contextcontext) {
if (contextinstanceofActivity) {
Activityactivity = (Activity) context;
InputMethodManagerimm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
//Find the currently focused view, so we can grab the correct window token from it.Viewview = activity.getCurrentFocus();
//If no view currently has focus, create a new one, just so we can grab a window token from itif (view == null) {
view = newView(activity);
}
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
}
@stefanJi , thank you for posting. Looks like final context was a possible culprit. I have tried a possible fix by dismissing the dialog and setting them null on detach of CCP view to release the reference.
It will be in next release. If you find leak in next version, please feel free to report.
Leak Info:
I think is
hideKeyboard
leaked activity ?Should use
ApplicationContext
?The text was updated successfully, but these errors were encountered: