]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorModel.java
Room-based profile management
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / CurrencySelectorModel.java
index 4b346cdf7759d16ceb4b7e3bea18f3cd51ab8d2e..0fca9d6caf813827d8347eb49814ac5fd2277e1d 100644 (file)
@@ -22,18 +22,10 @@ import androidx.lifecycle.MutableLiveData;
 import androidx.lifecycle.Observer;
 import androidx.lifecycle.ViewModel;
 
-import net.ktnx.mobileledger.model.Currency;
-
-import java.util.ArrayList;
-import java.util.List;
-
 public class CurrencySelectorModel extends ViewModel {
-    public final MutableLiveData<List<Currency>> currencies;
     private final MutableLiveData<Boolean> positionAndPaddingVisible = new MutableLiveData<>(true);
     private OnCurrencySelectedListener selectionListener;
-    public CurrencySelectorModel() {
-        this.currencies = new MutableLiveData<>(new ArrayList<>());
-    }
+    public CurrencySelectorModel() { }
     public void showPositionAndPadding() {
         positionAndPaddingVisible.postValue(true);
     }
@@ -50,7 +42,7 @@ public class CurrencySelectorModel extends ViewModel {
     void resetOnCurrencySelectedListener() {
         selectionListener = null;
     }
-    void triggerOnCurrencySelectedListener(Currency c) {
+    void triggerOnCurrencySelectedListener(String c) {
         if (selectionListener != null)
             selectionListener.onCurrencySelected(c);
     }