summaryrefslogtreecommitdiff
path: root/wallet/src/main/res
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-03-27 13:54:19 -0600
committerIván Ávalos <avalos@disroot.org>2024-03-28 12:21:11 -0600
commitccc6b47f8daf6e07fbfdf91d9ac2b84313172968 (patch)
tree3987a4f3f8053ee5208ba38a44cdf8d149d15174 /wallet/src/main/res
parentc3c7cd00b6fd2110bc8ca6c36b4a561d9d3d0f2d (diff)
downloadtaler-android-ccc6b47f8daf6e07fbfdf91d9ac2b84313172968.tar.gz
taler-android-ccc6b47f8daf6e07fbfdf91d9ac2b84313172968.tar.bz2
taler-android-ccc6b47f8daf6e07fbfdf91d9ac2b84313172968.zip
[wallet] Improve observability UI and make it globally reachable from the toolbar
bug 0008509
Diffstat (limited to 'wallet/src/main/res')
-rw-r--r--wallet/src/main/res/menu/global_dev.xml24
-rw-r--r--wallet/src/main/res/values/strings.xml5
2 files changed, 28 insertions, 1 deletions
diff --git a/wallet/src/main/res/menu/global_dev.xml b/wallet/src/main/res/menu/global_dev.xml
new file mode 100644
index 0000000..d6f73b9
--- /dev/null
+++ b/wallet/src/main/res/menu/global_dev.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ This file is part of GNU Taler
+ ~ (C) 2024 Taler Systems S.A.
+ ~
+ ~ GNU Taler is free software; you can redistribute it and/or modify it under the
+ ~ terms of the GNU General Public License as published by the Free Software
+ ~ Foundation; either version 3, or (at your option) any later version.
+ ~
+ ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU General Public License along with
+ ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ -->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/action_show_logs"
+ android:title="@string/show_logs"
+ android:icon="@drawable/ic_bug_report"
+ app:showAsAction="ifRoom" />
+</menu> \ No newline at end of file
diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml
index 31d007d..e597b4e 100644
--- a/wallet/src/main/res/values/strings.xml
+++ b/wallet/src/main/res/values/strings.xml
@@ -271,8 +271,11 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card
<string name="pending_operations_refuse">Refuse Proposal</string>
<string name="pending_operations_no_action">(no action)</string>
- <!-- Observability events -->
+ <!-- Observability -->
+ <string name="show_logs">Show logs</string>
<string name="observability_title">Internal event log</string>
+ <string name="observability_show_json">Show JSON</string>
+ <string name="observability_hide_json">Hide JSON</string>
<string name="event_http_fetch_start">HTTP request started</string>
<string name="event_http_fetch_finish_success">HTTP request succeeded</string>
<string name="event_http_fetch_finish_error">HTTP request failed</string>