From 78e1363db08d349310acd3151e235fcfa49d9f13 Mon Sep 17 00:00:00 2001 From: tom79 Date: Wed, 13 Nov 2019 15:59:50 +0100 Subject: [PATCH] Update lib --- app/build.gradle | 2 +- .../fedilab/android/fragments/DisplayStatusFragment.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 8173b1bcb..2accd31a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,7 +58,7 @@ allprojects { ext.supportLibraryVersion = '29.0.2' ext.glideLibraryVersion = '4.9.0' ext.conscryptLibraryVersion = '2.2.1' -ext.evernoteLibraryVersion = '1.3.0-rc1' +ext.evernoteLibraryVersion = '1.4.2' ext.gsonLibraryVersion = '2.8.2' ext.guavaLibraryVersion = '24.1-android' ext.photoViewLibraryVersion = '2.3.0' diff --git a/app/src/main/java/app/fedilab/android/fragments/DisplayStatusFragment.java b/app/src/main/java/app/fedilab/android/fragments/DisplayStatusFragment.java index 6a8f2fefb..a410c1921 100644 --- a/app/src/main/java/app/fedilab/android/fragments/DisplayStatusFragment.java +++ b/app/src/main/java/app/fedilab/android/fragments/DisplayStatusFragment.java @@ -37,6 +37,7 @@ import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.view.inputmethod.InputMethodManager; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; @@ -412,6 +413,12 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn editor.putString(Helper.LAST_READ_TOOT_DATE + userId + instance, Helper.dateToString(lastReadTootDate)); editor.apply(); } + if( getActivity() != null) { + InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); + if( imm != null && getView() != null) { + imm.hideSoftInputFromWindow(getView().getWindowToken(), 0); + } + } }