comment #5 - Some improvements

This commit is contained in:
Thomas 2020-10-09 18:37:54 +02:00
parent 056092ac71
commit c5269a3129
2 changed files with 6 additions and 1 deletions

View File

@ -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{

View File

@ -366,6 +366,5 @@
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="?attr/actionBarSize"
/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>