X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2FOnCurrencySelectedListener.java;fp=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2FOnCurrencySelectedListener.java;h=c12f32a2b517ae08455f1331413be3bb88fcd5a3;hb=5545ddea3574103c2a7eea552fff0d43a0587fac;hp=0000000000000000000000000000000000000000;hpb=b1889d2e6ad5b59a4b896a979cdd5736449e2b9e;p=mobile-ledger-staging.git diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/OnCurrencySelectedListener.java b/app/src/main/java/net/ktnx/mobileledger/ui/OnCurrencySelectedListener.java new file mode 100644 index 00000000..c12f32a2 --- /dev/null +++ b/app/src/main/java/net/ktnx/mobileledger/ui/OnCurrencySelectedListener.java @@ -0,0 +1,34 @@ +/* + * Copyright © 2020 Damyan Ivanov. + * This file is part of MoLe. + * MoLe is free software: you can distribute it and/or modify it + * under the term of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your opinion), any later version. + * + * MoLe 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 terms for details. + * + * You should have received a copy of the GNU General Public License + * along with MoLe. If not, see . + */ + +package net.ktnx.mobileledger.ui; + +import net.ktnx.mobileledger.model.Currency; + +/** + * This interface must be implemented by activities that contain this + * fragment to allow an interaction in this fragment to be communicated + * to the activity and potentially other fragments contained in that + * activity. + *

+ * See the Android Training lesson Communicating with Other Fragments for more information. + */ +public interface OnCurrencySelectedListener { + void onCurrencySelected(Currency item); +}