diff options
author | Torsten Grote <t@grobox.de> | 2020-02-12 16:53:03 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-02-12 17:09:09 -0300 |
commit | ada382885e9c103fe0795817a8585270a3079302 (patch) | |
tree | 3da610aa39d2c767307d974d54f2f4eb32be9188 /app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt | |
parent | c20a7945f2b37863264c3b9bdcc85454018bd4cd (diff) | |
download | wallet-android-ada382885e9c103fe0795817a8585270a3079302.tar.gz wallet-android-ada382885e9c103fe0795817a8585270a3079302.tar.bz2 wallet-android-ada382885e9c103fe0795817a8585270a3079302.zip |
Refactor payment code to make it easier to extend
Diffstat (limited to 'app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt')
-rw-r--r-- | app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt b/app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt new file mode 100644 index 0000000..608abfd --- /dev/null +++ b/app/src/main/java/net/taler/wallet/payment/PaymentSuccessfulFragment.kt @@ -0,0 +1,46 @@ +/* + This file is part of GNU Taler + (C) 2019 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.payment + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.fragment.app.Fragment +import androidx.navigation.fragment.findNavController +import kotlinx.android.synthetic.main.fragment_payment_successful.* +import net.taler.wallet.R + +/** + * Fragment that shows the success message for a payment. + */ +class PaymentSuccessfulFragment : Fragment() { + + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View? { + return inflater.inflate(R.layout.fragment_payment_successful, container, false) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + button_success_back.setOnClickListener { + findNavController().navigateUp() + } + } + +} |