[skip ci] feat:Added button to view rules (#525)
* feat:added way to clear saved manga progress * feat:Added button to view rules * changed something
This commit is contained in:
parent
489dcc0b52
commit
56e557738c
2 changed files with 30 additions and 1 deletions
|
@ -162,6 +162,26 @@ class CommentsFragment : Fragment() {
|
||||||
popup.inflate(R.menu.comments_sort_menu)
|
popup.inflate(R.menu.comments_sort_menu)
|
||||||
popup.show()
|
popup.show()
|
||||||
}
|
}
|
||||||
|
binding.openRules.setOnClickListener {
|
||||||
|
activity.customAlertDialog().apply {
|
||||||
|
setTitle("Commenting Rules")
|
||||||
|
.setMessage(
|
||||||
|
"🚨 BREAK ANY RULE = YOU'RE GONE\n\n" +
|
||||||
|
"1. NO RACISM, DISCRIMINATION, OR HATE SPEECH\n" +
|
||||||
|
"2. NO SPAMMING OR SELF-PROMOTION\n" +
|
||||||
|
"3. ABSOLUTELY NO NSFW CONTENT\n" +
|
||||||
|
"4. ENGLISH ONLY – NO EXCEPTIONS\n" +
|
||||||
|
"5. NO IMPERSONATION, HARASSMENT, OR ABUSE\n" +
|
||||||
|
"6. NO ILLEGAL CONTENT OR EXTREME DISRESPECT TOWARDS ANY FANDOM\n" +
|
||||||
|
"7. DO NOT REQUEST OR SHARE REPOSITORIES/EXTENSIONS\n" +
|
||||||
|
"8. SPOILERS ALLOWED ONLY WITH SPOILER TAGS AND A WARNING\n" +
|
||||||
|
"9. NO SEXUALIZING OR INAPPROPRIATE COMMENTS ABOUT MINOR CHARACTERS\n" +
|
||||||
|
"10. IF IT'S WRONG, DON'T POST IT!\n\n"
|
||||||
|
)
|
||||||
|
setNegButton("I Understand") {}
|
||||||
|
show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
binding.commentFilter.setOnClickListener {
|
binding.commentFilter.setOnClickListener {
|
||||||
activity.customAlertDialog().apply {
|
activity.customAlertDialog().apply {
|
||||||
|
@ -565,7 +585,7 @@ class CommentsFragment : Fragment() {
|
||||||
* Called when the user tries to comment for the first time
|
* Called when the user tries to comment for the first time
|
||||||
*/
|
*/
|
||||||
private fun showCommentRulesDialog() {
|
private fun showCommentRulesDialog() {
|
||||||
activity.customAlertDialog().apply{
|
activity.customAlertDialog().apply {
|
||||||
setTitle("Commenting Rules")
|
setTitle("Commenting Rules")
|
||||||
.setMessage(
|
.setMessage(
|
||||||
"🚨 BREAK ANY RULE = YOU'RE GONE\n\n" +
|
"🚨 BREAK ANY RULE = YOU'RE GONE\n\n" +
|
||||||
|
|
|
@ -26,6 +26,15 @@
|
||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:ignore="UseCompoundDrawables">
|
tools:ignore="UseCompoundDrawables">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/openRules"
|
||||||
|
android:layout_width="28dp"
|
||||||
|
android:layout_height="28dp"
|
||||||
|
android:layout_marginEnd="12dp"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:contentDescription="@string/open_rules"
|
||||||
|
app:srcCompat="@drawable/ic_round_info_24"
|
||||||
|
app:tint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/commentFilter"
|
android:id="@+id/commentFilter"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue