mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Added hide keyboard for activity
This commit is contained in:
parent
5e03f753a5
commit
4686acbae8
1 changed files with 9 additions and 0 deletions
|
@ -1116,6 +1116,15 @@ public class Helper {
|
||||||
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void hideKeyboard(Activity activity){
|
||||||
|
if (activity == null)
|
||||||
|
return;
|
||||||
|
View focused = activity.getCurrentFocus();
|
||||||
|
if (focused == null)
|
||||||
|
return;
|
||||||
|
hideKeyboard(focused);
|
||||||
|
}
|
||||||
|
|
||||||
// Formatting
|
// Formatting
|
||||||
|
|
||||||
private static final DecimalFormat df = new DecimalFormat("@@");
|
private static final DecimalFormat df = new DecimalFormat("@@");
|
||||||
|
|
Loading…
Reference in a new issue