aboutsummaryrefslogtreecommitdiff
path: root/taler-kotlin-android/src/main
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-09 13:38:30 -0300
committerTorsten Grote <t@grobox.de>2020-09-09 13:38:30 -0300
commit969f847504d7e8d6d7fe705607ea02a0e584506b (patch)
treea7ae48bf987076f937f3d4f0033f6fda787b9316 /taler-kotlin-android/src/main
parentf838c4613a6f345a4e81c2965b63dfa0626e3d1f (diff)
downloadtaler-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.kt4
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)
}