diff options
author | Torsten Grote <t@grobox.de> | 2020-09-09 13:38:30 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-09-09 13:38:30 -0300 |
commit | 969f847504d7e8d6d7fe705607ea02a0e584506b (patch) | |
tree | a7ae48bf987076f937f3d4f0033f6fda787b9316 /taler-kotlin-android/src/main | |
parent | f838c4613a6f345a4e81c2965b63dfa0626e3d1f (diff) | |
download | taler-android-969f847504d7e8d6d7fe705607ea02a0e584506b.tar.gz taler-android-969f847504d7e8d6d7fe705607ea02a0e584506b.tar.bz2 taler-android-969f847504d7e8d6d7fe705607ea02a0e584506b.zip |
[wallet] improve log viewer by not updating it and pre-filtering
Diffstat (limited to 'taler-kotlin-android/src/main')
-rw-r--r-- | taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt b/taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt index 093194f..4ac2e73 100644 --- a/taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt +++ b/taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt @@ -96,9 +96,11 @@ fun Context.isOnline(): Boolean { } } -fun Context.showLogViewer() { +fun Context.showLogViewer(logFilter: String? = null) { val lynxActivityIntent = LynxActivity.getIntent(this, LynxConfig().apply { maxNumberOfTracesToShow = 1500 // higher numbers seem to break share functionality + samplingRate = Int.MAX_VALUE // no updates please + logFilter?.let { filter = it } }) startActivity(lynxActivityIntent) } |