From 05f332bc075e4306bc1e14efc4f71d3afd5c3eb9 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 28 Jul 2020 15:48:17 -0400 Subject: [PATCH] ok --- app/src/main/java/awais/instagrabber/activities/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/activities/Main.java b/app/src/main/java/awais/instagrabber/activities/Main.java index 79db2b40..523cabf8 100755 --- a/app/src/main/java/awais/instagrabber/activities/Main.java +++ b/app/src/main/java/awais/instagrabber/activities/Main.java @@ -167,7 +167,7 @@ public final class Main extends BaseLanguageActivity { final String username = cookieModel.getUsername(); if (username != null) { found = true; - fetchListener.onResult(username); + fetchListener.onResult("@"+username); } } @@ -327,7 +327,7 @@ public final class Main extends BaseLanguageActivity { searchView.setQueryHint(getResources().getString(R.string.action_search)); searchView.setSuggestionsAdapter(suggestionAdapter); searchView.setOnSearchClickListener(v -> { - searchView.setQuery((cookieModel != null && userQuery.equals(cookieModel.getUsername())) ? "" : userQuery, false); + searchView.setQuery((cookieModel != null && userQuery.equals("@"+cookieModel.getUsername())) ? "" : userQuery, false); menu.findItem(R.id.action_about).setVisible(false); menu.findItem(R.id.action_settings).setVisible(false); menu.findItem(R.id.action_dms).setVisible(false);