From 9c7015ff9b94557f5599713e9b53377980f50453 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 11 Mar 2021 14:47:54 -0500 Subject: [PATCH] reorganize fav string again hopefully this is the final fix for #489 --- .../instagrabber/fragments/HashTagFragment.java | 2 +- .../instagrabber/fragments/LocationFragment.java | 2 +- .../fragments/main/ProfileFragment.java | 8 ++++---- app/src/main/res/values/strings.xml | 16 +++++++++------- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java b/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java index 550d43e1..96d99644 100644 --- a/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java @@ -540,7 +540,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe public void onSuccess(final Void result) { hashtagDetailsBinding.favChip.setText(R.string.favorite_short); hashtagDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24); - showSnackbar(getString(R.string.added_to_favs_short)); + showSnackbar(getString(R.string.added_to_favs)); } @Override diff --git a/app/src/main/java/awais/instagrabber/fragments/LocationFragment.java b/app/src/main/java/awais/instagrabber/fragments/LocationFragment.java index 4c1c9618..ee2852c8 100644 --- a/app/src/main/java/awais/instagrabber/fragments/LocationFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/LocationFragment.java @@ -528,7 +528,7 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR public void onSuccess(final Void result) { locationDetailsBinding.favChip.setText(R.string.favorite_short); locationDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24); - showSnackbar(getString(R.string.added_to_favs_short)); + showSnackbar(getString(R.string.added_to_favs)); } @Override diff --git a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java index 4cb6cc64..7b0a1c35 100644 --- a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java @@ -677,7 +677,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe @Override public void onSuccess(final Favorite result) { profileDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24); - profileDetailsBinding.favChip.setText(R.string.added_to_favs_short); + profileDetailsBinding.favChip.setText(R.string.favorite_short); favoriteRepository.insertOrUpdateFavorite(new Favorite( result.getId(), profileModel.getUsername(), @@ -729,9 +729,9 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe ), new RepositoryCallback() { @Override public void onSuccess(final Void result) { - profileDetailsBinding.favChip.setText(R.string.added_to_favs_short); + profileDetailsBinding.favChip.setText(R.string.favorite_short); profileDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24); - showSnackbar(getString(R.string.added_to_favs_short)); + showSnackbar(getString(R.string.added_to_favs)); } @Override @@ -749,7 +749,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe final String postCount = String.valueOf(profileModel.getMediaCount()); - SpannableStringBuilder span = new SpannableStringBuilder(getResources().getQuantityString(R.plurals.main_posts_count_inline, + SpannableStringBuilder span = new SpannableStringBuilder(getResources().getQuantityString(R.plurals.main_posts_count, profileModel.getMediaCount() > 2000000000L ? 2000000000 : (int) profileModel.getMediaCount(), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7e814f5e..ab473cd0 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -48,10 +48,14 @@ Use Instadp for high definition profile pictures Import/Export Language - + %s\nPost %s\nPosts + + %s Post + %s Posts + %s\nFollower %s\nFollowers @@ -117,8 +121,7 @@ Unbookmark Follow Unfollow - Favorite - Unfavorite + Favorite Block Unblock Restrict @@ -314,14 +317,13 @@ Barista Bibliogram Material Dark - Added to Favorites - Favorited - Favorite + Added to Favorites! + Add to Favorites Accounts Hashtags Locations Unknown - Removed from Favourites + Removed from Favourites! Backup & Restore Backup Barinsta app settings, account login data, and/or favorites to a plain text or encrypted backup file for later restoration. If you\'re backing up account login data, treat the file as confidential and keep it somewhere safe!