-
-
Notifications
You must be signed in to change notification settings - Fork 389
add a bottom sheet to confirm boosts and favs #5084
Conversation
Tak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, I'll try it out
app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java
Outdated
Show resolved
Hide resolved
|
|
||
| if (favourite) { | ||
| confirmFavourite(preferences) { | ||
| viewModel.favorite(true, status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really can't decide between favorite and favourite, huh
| val status = adapter?.peek(position)?.asStatusOrNull() ?: return | ||
|
|
||
| if (favourite) { | ||
| confirmReblog(preferences) { visibility -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be confirmFavorite, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thank you!
| viewModel.favorite(favourite, status) | ||
|
|
||
| if (favourite) { | ||
| confirmReblog(preferences) { visibility -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
app/src/main/res/values/strings.xml
Outdated
| <string name="reblog_privacy_followers_only_description">Only your followers can see your boost</string> | ||
|
|
||
| <string name="reblog_confirm">Boost this post?</string> | ||
| <string name="favourite_confirm">Favourite this post?</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the base strings file uk english (favourite) or us english (favorite)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is US, I'll change it to favorite
It is not necessary because the settings are read when the buttons are clicked since #5084
A better version for confirming boosts, because there is space for describing what the privacy options do.
This was quite difficult to get into theStatusBaseViewHolder, I had to add a callback that plays the button animation which is very hacky. It seems to work fine but I'm a bit worried about weird effects when the view holder gets recycled.I found a better way to do it without callback and without leaking views.