Skip to content

Commit fd2a7a9

Browse files
authored
Fix SearchView is not visible properly in lower API devices (commons-app#4333)
1 parent e2f3d88 commit fd2a7a9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
2929
implementation 'io.reactivex.rxjava2:rxjava:2.2.3'
3030
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
31+
implementation 'com.jakewharton.rxbinding3:rxbinding-appcompat:3.0.0'
3132
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.1.1'
3233
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.1.1'
3334
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.1.1'

app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
import android.widget.LinearLayout;
4040
import android.widget.ProgressBar;
4141
import android.widget.RelativeLayout;
42-
import android.widget.SearchView;
4342
import android.widget.TextView;
4443
import android.widget.Toast;
4544
import androidx.annotation.DrawableRes;
4645
import androidx.annotation.NonNull;
4746
import androidx.annotation.Nullable;
4847
import androidx.appcompat.app.AlertDialog;
48+
import androidx.appcompat.widget.SearchView;
4949
import androidx.fragment.app.Fragment;
5050
import androidx.appcompat.widget.AppCompatTextView;
5151
import androidx.recyclerview.widget.DividerItemDecoration;
@@ -60,7 +60,7 @@
6060
import com.google.android.material.floatingactionbutton.FloatingActionButton;
6161
import com.google.android.material.snackbar.Snackbar;
6262
import com.jakewharton.rxbinding2.view.RxView;
63-
import com.jakewharton.rxbinding2.widget.RxSearchView;
63+
import com.jakewharton.rxbinding3.appcompat.RxSearchView;
6464
import com.mapbox.mapboxsdk.annotations.Icon;
6565
import com.mapbox.mapboxsdk.annotations.IconFactory;
6666
import com.mapbox.mapboxsdk.annotations.Marker;

app/src/main/res/layout/filter_search_view_layout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
android:text="@string/place_type"
1414
android:textColor="@color/white"/>
1515

16-
<SearchView
16+
<androidx.appcompat.widget.SearchView
1717
android:id="@+id/search_view"
1818
android:layout_width="wrap_content"
1919
android:layout_height="match_parent"

0 commit comments

Comments
 (0)