Skip to content

Commit

Permalink
Fix: Issue #3367 Bug: SoftKeyboard showing even after switching from …
Browse files Browse the repository at this point in the history
…nearby tab to contribution tab (#3368)

Hide keyboard when switched back from NearbyFragment to ContributionsListFragment
  • Loading branch information
animeshk08 authored Feb 2, 2020
1 parent 61bfe84 commit bfb6dfd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import fr.free.nrw.commons.quiz.QuizChecker;
import fr.free.nrw.commons.theme.NavigationBaseActivity;
import fr.free.nrw.commons.upload.UploadService;
import fr.free.nrw.commons.utils.ViewUtil;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import timber.log.Timber;
Expand Down Expand Up @@ -179,6 +180,7 @@ public void onPageSelected(int position) {
Timber.d("Contributions tab selected");
tabLayout.getTabAt(CONTRIBUTIONS_TAB_POSITION).select();
isContributionsFragmentVisible = true;
ViewUtil.hideKeyboard(tabLayout.getRootView());
updateMenuItem();
break;
case NEARBY_TAB_POSITION:
Expand Down

0 comments on commit bfb6dfd

Please sign in to comment.