This commit is contained in:
Austin Huang 2020-12-22 17:23:48 -05:00
parent 3261bc5987
commit a67b867e1b
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
5 changed files with 39 additions and 31 deletions

View File

@ -410,9 +410,12 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
hashtagDetailsBinding.btnFollowTag.setClickable(true);
if (!result) {
Log.e(TAG, "onSuccess: result is false");
Snackbar.make(root, R.string.downloader_unknown_error, BaseTransientBottomBar.LENGTH_LONG)
.show();
return;
}
onRefresh();
hashtagDetailsBinding.btnFollowTag.setText(R.string.unfollow);
hashtagDetailsBinding.btnFollowTag.setChipIconResource(R.drawable.ic_outline_person_add_disabled_24);
}
@Override
@ -435,9 +438,12 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
hashtagDetailsBinding.btnFollowTag.setClickable(true);
if (!result) {
Log.e(TAG, "onSuccess: result is false");
Snackbar.make(root, R.string.downloader_unknown_error, BaseTransientBottomBar.LENGTH_LONG)
.show();
return;
}
onRefresh();
hashtagDetailsBinding.btnFollowTag.setText(R.string.follow);
hashtagDetailsBinding.btnFollowTag.setChipIconResource(R.drawable.ic_outline_person_add_24);
}
@Override
@ -462,8 +468,6 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
favoriteRepository.getFavorite(hashtag.substring(1), FavoriteType.HASHTAG, new RepositoryCallback<Favorite>() {
@Override
public void onSuccess(final Favorite result) {
hashtagDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24);
hashtagDetailsBinding.favChip.setText(R.string.favorite_short);
favoriteRepository.insertOrUpdateFavorite(new Favorite(
result.getId(),
hashtag.substring(1),
@ -473,7 +477,10 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
result.getDateAdded()
), new RepositoryCallback<Void>() {
@Override
public void onSuccess(final Void result) {}
public void onSuccess(final Void result) {
hashtagDetailsBinding.favChip.setChipIconResource(R.drawable.ic_star_check_24);
hashtagDetailsBinding.favChip.setText(R.string.favorite_short);
}
@Override
public void onDataNotAvailable() {}

View File

@ -536,11 +536,14 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment {
});
binding.like.setOnLongClickListener(v -> {
final NavController navController = getNavController();
if (navController != null) {
if (navController != null && isLoggedIn) {
final Bundle bundle = new Bundle();
bundle.putString("postId", feedModel.getPostId());
navController.navigate(R.id.action_global_likesViewerFragment, bundle);
}
else {
Utils.displayToastAboveView(context, v, getString(R.string.like_without_count));
}
return true;
});
}

View File

@ -0,0 +1,14 @@
Merry Christmas and Happy Holidays!
* You can now see who liked a post (logged-in users only, long-click the like button)
* You can now translate comments, captions, and bios (logged-in users only, through Instagram's API)
* Bio/Comment: Click bio once, then click "translate"
* Caption: Scroll down, then click "translate"
* You can now respond to slider stickers on stories
* Add Dutch and Hindi translations
* Feed now uses the app endpoint, which allows you to see posts from followed hashtags
* New profile details layout
* Comparing following/followers is now faster and more stable
* The APK is now smaller (~10 MB → 6.3 MB)
* Various bug fixes

View File

@ -1,33 +1,17 @@
If you don't upload posts or stories on Instagram, but you still have to use it to keep in touch with people and contents, you now have an alternative: Barinsta is a beautiful client that allows you to browse Instagram, while giving you more options to control your data.
If you don't upload posts or stories on Instagram, but can't get rid of it because of people and contents, you now have an alternative: Barinsta is a beautiful client that allows you to browse and interact with Instagram, while giving you more options to control your data.
Features:
* Login NOT NEEDED to browse timeline and face-tagged posts from public profiles, hashtags, and locations.
* View & download posts.
* View & copy comments, captions, & biographies.
* Zoom in on pictures with ease.
* Batch download posts from feeds (Hold & Select).
* Mark profiles as favourite for quicker access.
Additional features for those logged in:
* View & download stories, highlights, and HD avatar.
* Browse feed (posts and stories), discover (by topic), DM, activity/notifications, and private profiles that you have followed.
* Most features you need to view and interact: Like, "save", write/like/reply to comments, follow/block/restrict, reply to stories, play with stickers, respond to DMs (text & picture), etc.
* View stories anonymously (by default, configurable).
* See your own liked & saved posts.
* Copy DM messages & download attachments.
* Switch between accounts.
* For those not having an account, you can access public profiles/hashtags/locations!
* For those logged in, Barinsta can achieve most viewing and interaction features, with extra features such as downloading posts/stories/avatars, copying texts, comparing followers/following, and more!
Extra merits:
* Prevents irrational decisions: Instagram likes are set-it-forget-it, allowing them to collect more data from you. Barinsta intentionally removes double-tap and requires you to click into posts to give it a like. Barinsta also allows you to easily access posts you've liked through your own profile.
* Allows customization: Pick your themes and layouts!
* Allows viewing at your own pace: No need to "hold" a story with your fingers!
* Not a webapp: Absolutely NO browser involved, except for login.
* Prevents irrational decisions: Barinsta removes double-tap and requires you to click into posts to give it a conscious like. It also allows you to easily access posts you've liked through your own profile.
* Allows customization: Pick your themes and layouts! You could even use grid layout for feed!
* Allows viewing at your own pace: No need to "hold" a story or scroll endlessly! Zoom whenever you want!
* Not a mod: Absolutely NO dependency of the actual Instagram app.
* We don't store passwords!
* Request what you want: The app only requests what it needs to show you the content. No communicating with useless endpoints, and only minimal data is sent to Instagram.
* Free & Open Source Software: With the app's source code open for inspection, no need to worry about sketchy dealings!
* Protects your privacy from friends: Barinsta allows you to read DMs and stories privately, without telling your friends!
* Protects your privacy from Instagram: The app only requests what it needs to show you the content and what you opted for in the settings. No communicating with useless endpoints, and only minimal data is sent to Instagram.
*** Please use this app responsibly. ***

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 53 KiB