diff --git a/app/src/main/java/app/fedilab/fedilabtube/SepiaSearchActivity.java b/app/src/main/java/app/fedilab/fedilabtube/SepiaSearchActivity.java index 7322319..43fd5d1 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/SepiaSearchActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/SepiaSearchActivity.java @@ -19,6 +19,7 @@ import android.content.SharedPreferences; import android.os.Bundle; import android.view.MenuItem; import android.view.View; +import android.view.WindowManager; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; @@ -46,6 +47,7 @@ import app.fedilab.fedilabtube.helper.Helper; import mabbas007.tagsedittext.TagsEditText; import static app.fedilab.fedilabtube.MainActivity.peertubeInformation; +import static app.fedilab.fedilabtube.PeertubeActivity.hideKeyboard; public class SepiaSearchActivity extends AppCompatActivity { @@ -309,9 +311,13 @@ public class SepiaSearchActivity extends AppCompatActivity { }); Button apply_filter = findViewById(R.id.apply_filter); apply_filter.setOnClickListener(v-> makeSearch()); + + searchBar.openSearch(); + getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); } private void makeSearch(){ + hideKeyboard(SepiaSearchActivity.this); if( sepia_element_one_of_tags.getTags().size() > 0 ) { sepiaSearchVideo.setTagsOneOf(sepia_element_one_of_tags.getTags()); }else{ diff --git a/app/src/main/res/layout/activity_sepia_search.xml b/app/src/main/res/layout/activity_sepia_search.xml index 59124a8..e923702 100644 --- a/app/src/main/res/layout/activity_sepia_search.xml +++ b/app/src/main/res/layout/activity_sepia_search.xml @@ -366,6 +366,5 @@ android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginBottom="?attr/actionBarSize" />