From 69a7d677348e2b96dbbdc804fe7e9d0773e44a6e Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Fri, 31 Jul 2020 17:29:03 -0400 Subject: [PATCH] small fix --- app/src/main/java/awais/instagrabber/MainHelper.java | 2 +- app/src/main/java/awais/instagrabber/activities/Main.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/MainHelper.java b/app/src/main/java/awais/instagrabber/MainHelper.java index 37c14c21..a9c232a1 100755 --- a/app/src/main/java/awais/instagrabber/MainHelper.java +++ b/app/src/main/java/awais/instagrabber/MainHelper.java @@ -462,7 +462,7 @@ public final class MainHelper implements SwipeRefreshLayout.OnRefreshListener { if ((!autoloadPosts || isHashtag) && hasNextPage) { main.mainBinding.swipeRefreshLayout.setRefreshing(true); stopCurrentExecutor(); - currentlyExecuting = new PostsFetcher(isHashtag ? main.userQuery : main.profileModel.getId(), endCursor, postsFetchListener) + currentlyExecuting = new PostsFetcher((isHashtag || isLocation) ? main.userQuery : main.profileModel.getId(), endCursor, postsFetchListener) .setUsername(isHashtag ? null : main.profileModel.getUsername()) .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); endCursor = null; diff --git a/app/src/main/java/awais/instagrabber/activities/Main.java b/app/src/main/java/awais/instagrabber/activities/Main.java index af63b718..1f16240c 100755 --- a/app/src/main/java/awais/instagrabber/activities/Main.java +++ b/app/src/main/java/awais/instagrabber/activities/Main.java @@ -332,6 +332,7 @@ public final class Main extends BaseLanguageActivity { menu.findItem(R.id.action_settings).setVisible(false); menu.findItem(R.id.action_dms).setVisible(false); menu.findItem(R.id.action_quickaccess).setVisible(false); + menu.findItem(R.id.action_notif).setVisible(false); }); searchAction.setOnActionExpandListener(new MenuItem.OnActionExpandListener() { @Override @@ -345,6 +346,7 @@ public final class Main extends BaseLanguageActivity { menu.findItem(R.id.action_settings).setVisible(true); menu.findItem(R.id.action_dms).setVisible(true); menu.findItem(R.id.action_quickaccess).setVisible(true); + menu.findItem(R.id.action_notif).setVisible(true); return true; } });