diff --git a/briar-android/res/drawable/social_remove_person.xml b/briar-android/res/drawable/action_delete_white.xml similarity index 100% rename from briar-android/res/drawable/social_remove_person.xml rename to briar-android/res/drawable/action_delete_white.xml diff --git a/briar-android/res/menu/conversation_actions.xml b/briar-android/res/menu/conversation_actions.xml index 0128ee56f..a8c95182e 100644 --- a/briar-android/res/menu/conversation_actions.xml +++ b/briar-android/res/menu/conversation_actions.xml @@ -11,7 +11,7 @@ diff --git a/briar-android/res/menu/forum_actions.xml b/briar-android/res/menu/forum_actions.xml index 7eabf7e5e..292fe2b9c 100644 --- a/briar-android/res/menu/forum_actions.xml +++ b/briar-android/res/menu/forum_actions.xml @@ -17,7 +17,7 @@ diff --git a/briar-android/res/values/strings.xml b/briar-android/res/values/strings.xml index 42adc8639..97983567a 100644 --- a/briar-android/res/values/strings.xml +++ b/briar-android/res/values/strings.xml @@ -78,7 +78,7 @@ Show Leave Forum - Forum Left + Left Forum No posts New Forum Choose a name for your forum: @@ -95,7 +95,7 @@ Identity created Type forum post Available Forums - Subscribed + Joined Forum Shared by %s You don\'t have any contacts. Add a contact now? Add @@ -193,10 +193,10 @@ Add a contact to start communicating securely or press the icon in the upper left corner of the screen for more options. Briar has crashed Would you like to review the crash report and send it to the developers? It will be stored encrypted on your device until the next time you log into Briar, and then sent securely to the developers. - Confirm Leaving Forum - Are you sure that you want to remove this forum? Contacts you have shared this forum with might get cut off from receiving updates for this forum. + Confirm Leaving Forum + Are you sure that you want to leave this forum? Contacts you have shared this forum with might get cut off from receiving updates for this forum. OK - Remove + Leave Introduce Accept Decline diff --git a/briar-android/src/org/briarproject/android/forum/AvailableForumsActivity.java b/briar-android/src/org/briarproject/android/forum/AvailableForumsActivity.java index 67c6233b2..eb4ade9ab 100644 --- a/briar-android/src/org/briarproject/android/forum/AvailableForumsActivity.java +++ b/briar-android/src/org/briarproject/android/forum/AvailableForumsActivity.java @@ -83,8 +83,7 @@ implements EventListener, OnItemClickListener { runOnDbThread(new Runnable() { public void run() { try { - Collection available = - new ArrayList(); + Collection available = new ArrayList<>(); long now = System.currentTimeMillis(); for (Forum f : forumSharingManager.getAvailableForums()) { try { @@ -160,11 +159,11 @@ implements EventListener, OnItemClickListener { public void onItemClick(AdapterView parent, View view, int position, long id) { AvailableForumsItem item = adapter.getItem(position); - Collection shared = new ArrayList(); + Collection shared = new ArrayList<>(); for (Contact c : item.getContacts()) shared.add(c.getId()); subscribe(item.getForum(), shared); - String subscribed = getString(R.string.subscribed_toast); - Toast.makeText(this, subscribed, LENGTH_SHORT).show(); + String joined = getString(R.string.forum_joined_toast); + Toast.makeText(this, joined, LENGTH_SHORT).show(); } private void subscribe(final Forum f, final Collection shared) { diff --git a/briar-android/src/org/briarproject/android/forum/ForumActivity.java b/briar-android/src/org/briarproject/android/forum/ForumActivity.java index 8ecb6bf5f..c092791a5 100644 --- a/briar-android/src/org/briarproject/android/forum/ForumActivity.java +++ b/briar-android/src/org/briarproject/android/forum/ForumActivity.java @@ -403,9 +403,9 @@ public class ForumActivity extends BriarActivity implements EventListener, AlertDialog.Builder builder = new AlertDialog.Builder(ForumActivity.this, R.style.BriarDialogTheme); - builder.setTitle(getString(R.string.dialog_title_remove_forum)); - builder.setMessage(getString(R.string.dialog_message_remove_forum)); - builder.setPositiveButton(R.string.dialog_button_remove, okListener); + builder.setTitle(getString(R.string.dialog_title_leave_forum)); + builder.setMessage(getString(R.string.dialog_message_leave_forum)); + builder.setPositiveButton(R.string.dialog_button_leave, okListener); builder.setNegativeButton(android.R.string.cancel, null); builder.show(); }