diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeOptionsFragment.java b/app/src/main/java/com/keylesspalace/tusky/ComposeOptionsFragment.java
index 25dbd4b8..3f3e1c0b 100644
--- a/app/src/main/java/com/keylesspalace/tusky/ComposeOptionsFragment.java
+++ b/app/src/main/java/com/keylesspalace/tusky/ComposeOptionsFragment.java
@@ -73,10 +73,14 @@ public class ComposeOptionsFragment extends BottomSheetDialogFragment {
radioCheckedId = R.id.radio_unlisted;
}
if (statusVisibility != null) {
- if (statusVisibility.equals("unlisted")) {
- radioCheckedId = R.id.radio_unlisted;
+ if (statusVisibility.equals("public")) {
+ radioCheckedId = R.id.radio_public;
} else if (statusVisibility.equals("private")) {
radioCheckedId = R.id.radio_private;
+ } else if (statusVisibility.equals("unlisted")) {
+ radioCheckedId = R.id.radio_unlisted;
+ } else if (statusVisibility.equals("direct")) {
+ radioCheckedId = R.id.radio_direct;
}
}
radio.check(radioCheckedId);
@@ -113,6 +117,10 @@ public class ComposeOptionsFragment extends BottomSheetDialogFragment {
visibility = "private";
break;
}
+ case R.id.radio_direct: {
+ visibility = "direct";
+ break;
+ }
}
listener.onVisibilityChanged(visibility);
}
diff --git a/app/src/main/res/color/drawer_visibility_panel_item.xml b/app/src/main/res/color/drawer_visibility_panel_item.xml
new file mode 100644
index 00000000..9849dfa9
--- /dev/null
+++ b/app/src/main/res/color/drawer_visibility_panel_item.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_email_24dp.xml b/app/src/main/res/drawable/ic_email_24dp.xml
new file mode 100644
index 00000000..a050d6f8
--- /dev/null
+++ b/app/src/main/res/drawable/ic_email_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_lock_open_24dp.xml b/app/src/main/res/drawable/ic_lock_open_24dp.xml
new file mode 100644
index 00000000..72d7d123
--- /dev/null
+++ b/app/src/main/res/drawable/ic_lock_open_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_lock_outline_24dp.xml b/app/src/main/res/drawable/ic_lock_outline_24dp.xml
new file mode 100644
index 00000000..a0145706
--- /dev/null
+++ b/app/src/main/res/drawable/ic_lock_outline_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/layout/fragment_compose_options.xml b/app/src/main/res/layout/fragment_compose_options.xml
index 986fc6e7..818cf656 100644
--- a/app/src/main/res/layout/fragment_compose_options.xml
+++ b/app/src/main/res/layout/fragment_compose_options.xml
@@ -15,23 +15,48 @@
+
+
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index b3f96b32..2e67ba49 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -109,9 +109,10 @@
Média mis en ligne avec succès
Mise en ligne…
- Afficher dans les fils publics
- Ne pas afficher dans les fils publics
- N’afficher que pour vos abonné⋅e⋅s
+ Public: Afficher dans les fils publics
+ Non-listé: Ne pas afficher dans les fils publics
+ Privé: N\'afficher que pour vos abonné⋅e⋅s
+ Direct: N\'afficher que pour les personnes mentionnées
Notifications
Modifier la notification
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index cd165f3a..d559aeec 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -125,9 +125,10 @@
Uploading…
Download
- Everyone can view
- Everyone can view, but not on public timelines
- Only followers and mentions can view
+ Public: Post to public timelines
+ Unlisted: Do not show in public timelines
+ Private: Post to followers only
+ Direct: Post to mentioned users only
Notifications
Edit Notifications