mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 21:07:11 +01:00
Open search results when clicking a trending search.
This commit is contained in:
parent
f77ba0ef23
commit
3ecb39bc3e
@ -1,5 +1,6 @@
|
||||
package ml.docilealligator.infinityforreddit.activities;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
@ -144,7 +145,10 @@ public class TrendingActivity extends BaseActivity {
|
||||
dataSavingMode, disableImagePreview, new TrendingSearchRecyclerViewAdapter.ItemClickListener() {
|
||||
@Override
|
||||
public void onClick(TrendingSearch trendingSearch) {
|
||||
|
||||
Intent intent = new Intent(TrendingActivity.this, SearchResultActivity.class);
|
||||
intent.putExtra(SearchResultActivity.EXTRA_QUERY, trendingSearch.queryString);
|
||||
intent.putExtra(SearchResultActivity.EXTRA_TRENDING_SOURCE, "trending");
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
Loading…
Reference in New Issue
Block a user