From a7ec65d88f534de513a24103383e2136ce76aefc Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 2 Sep 2020 13:20:19 -0400 Subject: [PATCH] conflict resolution --- app/src/main/java/awais/instagrabber/MainHelper.java | 10 +++++++++- app/src/main/res/values/strings.xml | 8 +++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/MainHelper.java b/app/src/main/java/awais/instagrabber/MainHelper.java index 8c0e3661..821a29f3 100755 --- a/app/src/main/java/awais/instagrabber/MainHelper.java +++ b/app/src/main/java/awais/instagrabber/MainHelper.java @@ -1415,7 +1415,15 @@ public final class MainHelper implements SwipeRefreshLayout.OnRefreshListener { : mainActivity.userQuery.replaceAll("^@", ""))); onRefresh(); } else if (v == mainActivity.mainBinding.profileView.btnFollow) { - new ProfileAction().execute("follow"); + if (mainActivity.profileModel.isPrivate() && mainActivity.profileModel.getFollowing()) { + new AlertDialog.Builder(main) + .setTitle(R.string.priv_acc) + .setMessage(R.string.priv_acc_confirm) + .setNegativeButton(R.string.no, null) + .setPositiveButton(R.string.yes, (dialog, which) -> new ProfileAction().execute("follow")) + .show(); + } + else new ProfileAction().execute("follow"); } else if (v == mainActivity.mainBinding.profileView.btnRestrict && isLoggedIn) { new ProfileAction().execute("restrict"); } else if (v == mainActivity.mainBinding.profileView.btnSaved && !isSelf) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 76368dfa..3bbca35b 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -34,10 +34,13 @@ User Story Changelog Show toolbar at bottom + Check for new updates on GitHub at startup Download posts to username folder in Downloads Auto-load all posts from user Mark stories as seen after viewing Story author will know you viewed it + Automatically mark DM as seen after viewing + Other members will know you viewed it Enable activity notifications Error loading profile!\nTry logging in and search again. Error creating Download folder(s). @@ -85,6 +88,7 @@ You have already answered! Mentions This Account is Private + You won\'t be able to access posts after unfollowing! Are you sure? You can log in via Settings on the bottom-right corner. Or, you can view public accounts without login! You can swipe left/right for explore/feed, or search something below! This Account has No Posts @@ -174,6 +178,8 @@ Great success! Leave Leave this chat? + Kick + Left users Download directly Downloads posts directly to the phone! Fetching post(s) @@ -243,4 +249,4 @@ Relogin Refresh your cookies if facing any issues Successfully logged out! - + \ No newline at end of file