diff options
author | Torsten Grote <t@grobox.de> | 2020-04-03 14:04:22 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-04-03 14:04:22 -0300 |
commit | bee652834f90fd8abd46b5adcf30adcc587984c2 (patch) | |
tree | 75c66b3ff5c3160ec063cf33d16400a69823a483 /wallet/src/main/java/net/taler/wallet/Utils.kt | |
parent | e52ee8f55326de402a7ad421c396eb6c81a79a68 (diff) | |
download | taler-android-bee652834f90fd8abd46b5adcf30adcc587984c2.tar.gz taler-android-bee652834f90fd8abd46b5adcf30adcc587984c2.tar.bz2 taler-android-bee652834f90fd8abd46b5adcf30adcc587984c2.zip |
[wallet] add detail page for withdrawal event in history
Also make history accessible by tapping the balance
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/Utils.kt')
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/Utils.kt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/Utils.kt b/wallet/src/main/java/net/taler/wallet/Utils.kt new file mode 100644 index 0000000..ae8712f --- /dev/null +++ b/wallet/src/main/java/net/taler/wallet/Utils.kt @@ -0,0 +1,21 @@ +/* + * This file is part of GNU Taler + * (C) 2020 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/> + */ + +package net.taler.wallet + +fun cleanExchange(exchange: String) = exchange.let { + if (it.startsWith("https://")) it.substring(8) else it +}.trimEnd('/') |