mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-09-15 08:20:18 +03:00
Add buttons for default quote approval policy preference in edit profile activity
This commit is contained in:
parent
89adb83c07
commit
4d3a227c05
2 changed files with 53 additions and 1 deletions
|
@ -376,6 +376,57 @@
|
||||||
|
|
||||||
</com.google.android.material.button.MaterialButtonToggleGroup>
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/quote_approval_policy_label"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="12dp"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:text="@string/default_who_can_quote"
|
||||||
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/visibility_group" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
||||||
|
android:id="@+id/quote_approval_policy_group"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="12dp"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/quote_approval_policy_label"
|
||||||
|
app:selectionRequired="true"
|
||||||
|
app:singleSelection="true">
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/quote_approval_policy_no_one"
|
||||||
|
style="@style/Fedilab.OutlinedButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/no_one"
|
||||||
|
android:textAlignment="textStart"
|
||||||
|
app:icon="@drawable/ic_baseline_block_24" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/quote_approval_policy_followers_only"
|
||||||
|
style="@style/Fedilab.OutlinedButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="0dp"
|
||||||
|
android:text="@string/followers_only"
|
||||||
|
android:textAlignment="textStart"
|
||||||
|
app:icon="@drawable/ic_baseline_people_alt_24" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/quote_approval_policy_anyone"
|
||||||
|
style="@style/Fedilab.OutlinedButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/anyone"
|
||||||
|
android:textAlignment="textStart"
|
||||||
|
app:icon="@drawable/ic_compose_visibility_public" />
|
||||||
|
|
||||||
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
android:id="@+id/sensitive"
|
android:id="@+id/sensitive"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -383,7 +434,7 @@
|
||||||
android:layout_marginHorizontal="12dp"
|
android:layout_marginHorizontal="12dp"
|
||||||
android:layout_marginTop="6dp"
|
android:layout_marginTop="6dp"
|
||||||
android:text="@string/set_sensitive_content"
|
android:text="@string/set_sensitive_content"
|
||||||
app:layout_constraintTop_toBottomOf="@id/visibility_group" />
|
app:layout_constraintTop_toBottomOf="@id/quote_approval_policy_group" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
android:id="@+id/bot"
|
android:id="@+id/bot"
|
||||||
|
|
|
@ -171,6 +171,7 @@
|
||||||
<string name="toot_delete_media">Remove this media?</string>
|
<string name="toot_delete_media">Remove this media?</string>
|
||||||
<string name="toot_error_no_content">Your message is empty!</string>
|
<string name="toot_error_no_content">Your message is empty!</string>
|
||||||
<string name="toots_visibility_title">Visibility of the messages by default: </string>
|
<string name="toots_visibility_title">Visibility of the messages by default: </string>
|
||||||
|
<string name="default_who_can_quote">Default selection for who can quote</string>
|
||||||
<string name="toot_sent">The message has been sent!</string>
|
<string name="toot_sent">The message has been sent!</string>
|
||||||
<string name="toot_sensitive">Sensitive content?</string>
|
<string name="toot_sensitive">Sensitive content?</string>
|
||||||
<string name="no_draft">No drafts!</string>
|
<string name="no_draft">No drafts!</string>
|
||||||
|
|
Loading…
Reference in a new issue