|
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; |
8 | 7 | import android.content.Intent; |
9 | 8 | import android.content.IntentFilter; |
10 | 9 | import android.content.res.Configuration; |
11 | 10 | import android.os.Bundle; |
12 | | -import android.os.IBinder; |
13 | 11 | import android.util.Log; |
14 | 12 | import android.view.Gravity; |
15 | 13 | import android.view.LayoutInflater; |
16 | 14 | import android.view.View; |
17 | 15 | import android.view.ViewGroup; |
18 | 16 | import android.view.animation.Animation; |
19 | 17 | import android.view.animation.AnimationUtils; |
20 | | -import android.view.inputmethod.InputMethodManager; |
21 | 18 | import android.widget.Button; |
22 | 19 | import android.widget.FrameLayout; |
23 | 20 | import android.widget.ImageView; |
@@ -494,20 +491,6 @@ public void centerMapToPlace(Place place) { |
494 | 491 | } |
495 | 492 | } |
496 | 493 |
|
497 | | - /** |
498 | | - * Hides the keyboard in case the tab is switched |
499 | | - */ |
500 | | - public void hideKeyboard(){ |
501 | | - if(!searchView.isIconified()) { |
502 | | - searchView.clearFocus(); |
503 | | - InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE); |
504 | | - final IBinder windowToken = this.getView().getRootView().getWindowToken(); |
505 | | - if (view != null) { |
506 | | - imm.hideSoftInputFromWindow(windowToken, InputMethodManager.HIDE_NOT_ALWAYS); |
507 | | - } |
508 | | - } |
509 | | - } |
510 | | - |
511 | 494 |
|
512 | 495 | /** |
513 | 496 | * Thanks to this method we make sure NearbyMapFragment is ready and attached. So that we can |
|
0 commit comments