diff options
author | Allan Wang <me@allanwang.ca> | 2018-03-11 19:24:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-11 19:24:32 -0400 |
commit | fe51373f5a95323d64f6d966888a2c6c62a36deb (patch) | |
tree | 328bf7ab5bf00f01e070e9d84ff71cac59b0ecf1 /app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt | |
parent | 67988a25d83fc10b187fcc821c3ceacfad0195d5 (diff) | |
download | frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.tar.gz frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.tar.bz2 frost-fe51373f5a95323d64f6d966888a2c6c62a36deb.zip |
Enhancement/debug mode (#779)
* Update changelog
* Improve debugger
* Remove need for mapping urls
* Remove excess logs
* Clean up
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt index a4d98d8a..691f050e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/AboutActivity.kt @@ -59,7 +59,7 @@ class AboutActivity : AboutActivityBase(null, { "subsamplingscaleimageview" ) - val l = libs.prepareLibraries(this, include, null, false, true,true) + val l = libs.prepareLibraries(this, include, null, false, true, true) // l.forEach { KL.d{"Lib ${it.definedName}"} } return l } @@ -88,14 +88,18 @@ class AboutActivity : AboutActivityBase(null, { if (item is LibraryIItem) { val now = System.currentTimeMillis() if (now - lastClick > 500) - clickCount = 0 + clickCount = 1 else clickCount++ lastClick = now - if (clickCount == 7 && !Prefs.debugSettings) { - Prefs.debugSettings = true - L.d { "Debugging section enabled" } - toast(R.string.debug_toast_enabled) + if (clickCount == 8) { + if (!Prefs.debugSettings) { + Prefs.debugSettings = true + L.d { "Debugging section enabled" } + toast(R.string.debug_toast_enabled) + } else { + toast(R.string.debug_toast_already_enabled) + } } } false |