From 969f847504d7e8d6d7fe705607ea02a0e584506b Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Wed, 9 Sep 2020 13:38:30 -0300 Subject: [wallet] improve log viewer by not updating it and pre-filtering --- taler-kotlin-android/src/main/java/net/taler/common/AndroidUtils.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'taler-kotlin-android/src/main') 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) } -- cgit v1.2.3