fix: some markdown fixes
This commit is contained in:
parent
6eb654bf51
commit
b09f26ed34
13 changed files with 194 additions and 27 deletions
|
@ -23,12 +23,12 @@ import ani.dantotsu.databinding.ActivitySettingsBinding
|
|||
import ani.dantotsu.initActivity
|
||||
import ani.dantotsu.navBarHeight
|
||||
import ani.dantotsu.openLinkInBrowser
|
||||
import ani.dantotsu.openLinkInYouTube
|
||||
import ani.dantotsu.others.AppUpdater
|
||||
import ani.dantotsu.others.CustomBottomDialog
|
||||
import ani.dantotsu.pop
|
||||
import ani.dantotsu.setSafeOnClickListener
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.snackString
|
||||
import ani.dantotsu.startMainActivity
|
||||
import ani.dantotsu.statusBarHeight
|
||||
|
@ -217,10 +217,14 @@ class SettingsActivity : AppCompatActivity() {
|
|||
settingsLogo.setSafeOnClickListener {
|
||||
cursedCounter++
|
||||
(settingsLogo.drawable as Animatable).start()
|
||||
if (cursedCounter % 7 == 0) {
|
||||
toast(R.string.you_cursed)
|
||||
openLinkInYouTube(getString(R.string.cursed_yt))
|
||||
//PrefManager.setVal(PrefName.ImageUrl, !PrefManager.getVal(PrefName.ImageUrl, false))
|
||||
if (cursedCounter % 16 == 0) {
|
||||
val oldVal: Boolean = PrefManager.getVal(PrefName.OC)
|
||||
if (!oldVal) {
|
||||
toast(R.string.omega_cursed)
|
||||
} else {
|
||||
toast(R.string.omega_freed)
|
||||
}
|
||||
PrefManager.setVal(PrefName.OC, !oldVal)
|
||||
} else {
|
||||
snackString(array[(Math.random() * array.size).toInt()], context)
|
||||
}
|
||||
|
|
|
@ -191,6 +191,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
|||
SubscriptionNotificationStore(Pref(Location.Irrelevant, List::class, listOf<SubscriptionStore>())),
|
||||
UnreadCommentNotifications(Pref(Location.Irrelevant, Int::class, 0)),
|
||||
DownloadsDir(Pref(Location.Irrelevant, String::class, "")),
|
||||
OC(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
RefreshStatus(Pref(Location.Irrelevant, Boolean::class, false)),
|
||||
|
||||
//Protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue