Skip to content

Commit

Permalink
fix(search): open lemmy URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Apr 10, 2024
1 parent 4f3d711 commit a844852
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
Expand All @@ -26,6 +27,7 @@
import android.widget.Toolbar;

import org.joinmastodon.android.GlobalUserPreferences;
import org.joinmastodon.android.MainActivity;
import org.joinmastodon.android.R;
import org.joinmastodon.android.api.requests.search.GetSearchResults;
import org.joinmastodon.android.api.session.AccountSessionManager;
Expand Down Expand Up @@ -434,7 +436,7 @@ private void onSearchViewEnter(){
}

private void onOpenURLClick(ListItem<?> item_){
UiUtils.openURL(getContext(), accountID, searchViewHelper.getQuery(), false);
((MainActivity)getActivity()).handleURL(Uri.parse(searchViewHelper.getQuery()), accountID);
}

private void onGoToHashtagClick(ListItem<?> item_){
Expand Down

0 comments on commit a844852

Please sign in to comment.