|
1 | 1 | package fr.free.nrw.commons.nearby.fragments; |
2 | 2 |
|
3 | 3 | import android.Manifest; |
4 | | -import android.app.Activity; |
5 | 4 | import android.app.AlertDialog; |
6 | 5 | import android.content.BroadcastReceiver; |
7 | 6 | import android.content.Context; |
|
10 | 9 | import android.content.res.Configuration; |
11 | 10 | import android.graphics.Bitmap; |
12 | 11 | import android.os.Bundle; |
13 | | -import android.os.IBinder; |
14 | 12 | import android.util.Log; |
15 | 13 | import android.view.Gravity; |
16 | 14 | import android.view.LayoutInflater; |
17 | 15 | import android.view.View; |
18 | 16 | import android.view.ViewGroup; |
19 | 17 | import android.view.animation.Animation; |
20 | 18 | import android.view.animation.AnimationUtils; |
21 | | -import android.view.inputmethod.InputMethodManager; |
22 | 19 | import android.widget.Button; |
23 | 20 | import android.widget.ImageView; |
24 | 21 | import android.widget.LinearLayout; |
@@ -600,20 +597,6 @@ public void centerMapToPlace(Place place) { |
600 | 597 | } |
601 | 598 | } |
602 | 599 |
|
603 | | - /** |
604 | | - * Hides the keyboard in case the tab is switched |
605 | | - */ |
606 | | - public void hideKeyboard(){ |
607 | | - if(!searchView.isIconified()) { |
608 | | - searchView.clearFocus(); |
609 | | - InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE); |
610 | | - final IBinder windowToken = this.getView().getRootView().getWindowToken(); |
611 | | - if (view != null) { |
612 | | - imm.hideSoftInputFromWindow(windowToken, InputMethodManager.HIDE_NOT_ALWAYS); |
613 | | - } |
614 | | - } |
615 | | - } |
616 | | - |
617 | 600 |
|
618 | 601 | /** |
619 | 602 | * Thanks to this method we make sure NearbyMapFragment is ready and attached. So that we can |
|
0 commit comments