mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
Merge branch '1196-remove-thread-sent-snackbars' into 'master'
Remove unnecessary snackbars in threaded conversation Closes #1196 See merge request briar/briar!1055
This commit is contained in:
@@ -134,12 +134,6 @@ public class ForumActivity extends
|
|||||||
return MAX_FORUM_POST_TEXT_LENGTH;
|
return MAX_FORUM_POST_TEXT_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@StringRes
|
|
||||||
protected int getItemPostedString() {
|
|
||||||
return R.string.forum_new_entry_posted;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showUnsubscribeDialog() {
|
private void showUnsubscribeDialog() {
|
||||||
OnClickListener okListener = (dialog, which) -> deleteForum();
|
OnClickListener okListener = (dialog, which) -> deleteForum();
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(this,
|
AlertDialog.Builder builder = new AlertDialog.Builder(this,
|
||||||
|
|||||||
@@ -191,12 +191,6 @@ public class GroupActivity extends
|
|||||||
return MAX_GROUP_POST_TEXT_LENGTH;
|
return MAX_GROUP_POST_TEXT_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@StringRes
|
|
||||||
protected int getItemPostedString() {
|
|
||||||
return R.string.groups_message_sent;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReplyClick(GroupMessageItem item) {
|
public void onReplyClick(GroupMessageItem item) {
|
||||||
if (!isDissolved) super.onReplyClick(item);
|
if (!isDissolved) super.onReplyClick(item);
|
||||||
|
|||||||
@@ -401,7 +401,6 @@ public abstract class ThreadListActivity<G extends NamedGroup, I extends ThreadI
|
|||||||
adapter.add(item);
|
adapter.add(item);
|
||||||
|
|
||||||
if (isLocal) {
|
if (isLocal) {
|
||||||
displaySnackbar(getItemPostedString());
|
|
||||||
scrollToItemAtTop(item);
|
scrollToItemAtTop(item);
|
||||||
} else {
|
} else {
|
||||||
updateUnreadCount();
|
updateUnreadCount();
|
||||||
@@ -418,7 +417,4 @@ public abstract class ThreadListActivity<G extends NamedGroup, I extends ThreadI
|
|||||||
downButton.setUnreadCount(unreadCount.bottom);
|
downButton.setUnreadCount(unreadCount.bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
@StringRes
|
|
||||||
protected abstract int getItemPostedString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,7 +211,6 @@
|
|||||||
<string name="groups_create_group_invitation_button">Send Invitation</string>
|
<string name="groups_create_group_invitation_button">Send Invitation</string>
|
||||||
<string name="groups_create_group_hint">Choose a name for your private group</string>
|
<string name="groups_create_group_hint">Choose a name for your private group</string>
|
||||||
<string name="groups_invitation_sent">Group invitation has been sent</string>
|
<string name="groups_invitation_sent">Group invitation has been sent</string>
|
||||||
<string name="groups_message_sent">Message sent</string>
|
|
||||||
<string name="groups_member_list">Member List</string>
|
<string name="groups_member_list">Member List</string>
|
||||||
<string name="groups_invite_members">Invite Members</string>
|
<string name="groups_invite_members">Invite Members</string>
|
||||||
<string name="groups_member_created_you">You created the group</string>
|
<string name="groups_member_created_you">You created the group</string>
|
||||||
@@ -265,7 +264,6 @@
|
|||||||
<item quantity="one">%d post</item>
|
<item quantity="one">%d post</item>
|
||||||
<item quantity="other">%d posts</item>
|
<item quantity="other">%d posts</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<string name="forum_new_entry_posted">Forum post published</string>
|
|
||||||
<string name="forum_new_message_hint">New Post</string>
|
<string name="forum_new_message_hint">New Post</string>
|
||||||
<string name="forum_message_reply_hint">New Reply</string>
|
<string name="forum_message_reply_hint">New Reply</string>
|
||||||
<string name="btn_reply">Reply</string>
|
<string name="btn_reply">Reply</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user