From 699367b94f6ff17e673f0d06287389a548da2a46 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 23 Aug 2022 14:59:37 -0300 Subject: [wallet] Fix lint error --- .../main/java/net/taler/wallet/settings/SettingsFragment.kt | 10 +++------- .../net/taler/wallet/withdraw/manual/ManualWithdrawFragment.kt | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'wallet/src/main/java/net') diff --git a/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt b/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt index 1a17d78..0435985 100644 --- a/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/settings/SettingsFragment.kt @@ -19,7 +19,6 @@ package net.taler.wallet.settings import android.os.Bundle import android.view.View import android.widget.Toast -import androidx.activity.result.contract.ActivityResultContracts import androidx.appcompat.app.AlertDialog import androidx.fragment.app.activityViewModels import androidx.preference.Preference @@ -65,11 +64,6 @@ class SettingsFragment : PreferenceFragmentCompat() { ) } - val createDocumentActivity = - registerForActivityResult(ActivityResultContracts.CreateDocument()) { uri -> - - } - override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { setPreferencesFromResource(R.xml.settings_main, rootKey) prefBackup = findPreference("pref_backup")!! @@ -123,7 +117,9 @@ class SettingsFragment : PreferenceFragmentCompat() { prefLogcat.setOnPreferenceClickListener { val toast = - Toast.makeText(requireActivity(), "Log export currently unavailable", Toast.LENGTH_LONG) + Toast.makeText(requireActivity(), + "Log export currently unavailable", + Toast.LENGTH_LONG) toast.show() // val myPid = android.os.Process.myPid() diff --git a/wallet/src/main/java/net/taler/wallet/withdraw/manual/ManualWithdrawFragment.kt b/wallet/src/main/java/net/taler/wallet/withdraw/manual/ManualWithdrawFragment.kt index fbdd828..eb1f133 100644 --- a/wallet/src/main/java/net/taler/wallet/withdraw/manual/ManualWithdrawFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/withdraw/manual/ManualWithdrawFragment.kt @@ -1,6 +1,6 @@ /* * This file is part of GNU Taler - * (C) 2020 Taler Systems S.A. + * (C) 2022 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 -- cgit v1.2.3