mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-27 11:51:02 +00:00
fix: first comment message appear every time
This commit is contained in:
@@ -290,8 +290,8 @@ class CommentsActivity : AppCompatActivity() {
|
||||
snackString("You are banned from commenting :(")
|
||||
return@setOnClickListener
|
||||
}
|
||||
val firstComment = PrefManager.getVal(PrefName.FirstComment, false)
|
||||
if (!firstComment) {
|
||||
val firstComment = PrefManager.getVal<Boolean>(PrefName.FirstComment)
|
||||
if (firstComment) {
|
||||
//show a dialog explaining the rules
|
||||
val alertDialog = android.app.AlertDialog.Builder(this, R.style.MyPopup)
|
||||
.setTitle("Commenting Rules")
|
||||
|
||||
Reference in New Issue
Block a user