diff options
author | Torsten Grote <t@grobox.de> | 2020-09-07 13:41:12 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-09-07 13:41:12 -0300 |
commit | 663d264bf18d4af84553d969fd85e782d94faa41 (patch) | |
tree | c3e427b7863d0e68b619603cf732bbf3ad09a89b /wallet/src/main/java | |
parent | d78c2003df1db7af448de1c91449201020109190 (diff) | |
download | taler-android-663d264bf18d4af84553d969fd85e782d94faa41.tar.gz taler-android-663d264bf18d4af84553d969fd85e782d94faa41.tar.bz2 taler-android-663d264bf18d4af84553d969fd85e782d94faa41.zip |
[wallet] add logcat viewer to dev settings
Diffstat (limited to 'wallet/src/main/java')
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt b/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt index 63492f4..b321061 100644 --- a/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt @@ -25,6 +25,7 @@ import androidx.preference.PreferenceFragmentCompat import androidx.preference.SwitchPreferenceCompat import com.google.android.material.snackbar.BaseTransientBottomBar.LENGTH_SHORT import com.google.android.material.snackbar.Snackbar +import net.taler.common.showLogViewer import net.taler.common.toRelativeTime import net.taler.wallet.BuildConfig.FLAVOR import net.taler.wallet.BuildConfig.VERSION_CODE @@ -42,6 +43,7 @@ class SettingsFragment : PreferenceFragmentCompat() { private lateinit var prefBackup: Preference private lateinit var prefDevMode: SwitchPreferenceCompat private lateinit var prefWithdrawTest: Preference + private lateinit var prefLogcat: Preference private lateinit var prefVersionApp: Preference private lateinit var prefVersionCore: Preference private lateinit var prefVersionExchange: Preference @@ -51,6 +53,7 @@ class SettingsFragment : PreferenceFragmentCompat() { listOf( prefBackup, prefWithdrawTest, + prefLogcat, prefVersionApp, prefVersionCore, prefVersionExchange, @@ -64,6 +67,7 @@ class SettingsFragment : PreferenceFragmentCompat() { prefBackup = findPreference("pref_backup")!! prefDevMode = findPreference("pref_dev_mode")!! prefWithdrawTest = findPreference("pref_testkudos")!! + prefLogcat = findPreference("pref_logcat")!! prefVersionApp = findPreference("pref_version_app")!! prefVersionCore = findPreference("pref_version_core")!! prefVersionExchange = findPreference("pref_version_protocol_exchange")!! @@ -103,6 +107,11 @@ class SettingsFragment : PreferenceFragmentCompat() { true } + prefLogcat.setOnPreferenceClickListener { + requireContext().showLogViewer() + true + } + prefReset.setOnPreferenceClickListener { showResetDialog() true |