mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 10:16:45 +00:00
Fixed action bar blinking
This commit is contained in:
parent
04bfcb3566
commit
80ca58d2a2
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import android.view.View;
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
|
|
||||||
public class FragmentEx extends Fragment {
|
public class FragmentEx extends Fragment {
|
||||||
private String subtitle = "";
|
private String subtitle = " ";
|
||||||
|
|
||||||
protected void setSubtitle(int resid) {
|
protected void setSubtitle(int resid) {
|
||||||
setSubtitle(getString(resid));
|
setSubtitle(getString(resid));
|
||||||
|
@ -29,9 +29,9 @@ public class FragmentEx extends Fragment {
|
||||||
super.onDetach();
|
super.onDetach();
|
||||||
|
|
||||||
InputMethodManager im = getContext().getSystemService(InputMethodManager.class);
|
InputMethodManager im = getContext().getSystemService(InputMethodManager.class);
|
||||||
View focussed = getActivity().getCurrentFocus();
|
View focused = getActivity().getCurrentFocus();
|
||||||
if (focussed != null)
|
if (focused != null)
|
||||||
im.hideSoftInputFromWindow(focussed.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
|
im.hideSoftInputFromWindow(focused.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSubtitle() {
|
private void updateSubtitle() {
|
||||||
|
|
Loading…
Reference in a new issue