[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:
Ankit Grai 2024-11-17 10:29:07 +05:30 committed by GitHub
parent 489dcc0b52
commit 56e557738c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 1 deletions

View file

@ -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 {

View file

@ -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"