Fix deeplink/search?query=xy intent (#6754)

This commit is contained in:
ByteHamster 2023-11-11 10:52:16 +01:00 committed by GitHub
parent 4d627cc3af
commit 8af06a9f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -608,7 +608,7 @@ public class MainActivity extends CastEnabledActivity {
} else if (intent.getBooleanExtra(MainActivityStarter.EXTRA_OPEN_PLAYER, false)) {
sheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
bottomSheetCallback.onSlide(null, 1.0f);
} else if (Intent.ACTION_VIEW.equals(intent.getAction())) {
} else {
handleDeeplink(intent.getData());
}

View File

@ -248,6 +248,7 @@ public class SearchFragment extends Fragment implements EpisodeItemListAdapter.O
item.expandActionView();
searchView = (SearchView) item.getActionView();
searchView.setQueryHint(getString(R.string.search_label));
searchView.setQuery(getArguments().getString(ARG_QUERY), true);
searchView.requestFocus();
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override