From 2f8d106cbcda51893aac741e5d4b64333f217f1f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 23 Dec 2020 20:53:32 +0000 Subject: [PATCH] =?utf8?q?Switch=20=E2=86=92=20SwitchMaterial=20in=20the?= =?utf8?q?=20currency=20selector?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/ktnx/mobileledger/ui/CurrencySelectorFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java index 4993df37..e86d5015 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java @@ -23,7 +23,6 @@ import android.os.Bundle; import android.view.View; import android.widget.RadioButton; import android.widget.RadioGroup; -import android.widget.Switch; import android.widget.TextView; import androidx.annotation.NonNull; @@ -34,6 +33,8 @@ import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; +import com.google.android.material.switchmaterial.SwitchMaterial; + import net.ktnx.mobileledger.App; import net.ktnx.mobileledger.R; import net.ktnx.mobileledger.model.Currency; @@ -180,7 +181,7 @@ public class CurrencySelectorFragment extends AppCompatDialogFragment Data.currencySymbolPosition.setValue(Currency.Position.after); }); - Switch gap = csd.findViewById(R.id.currency_gap); + SwitchMaterial gap = csd.findViewById(R.id.currency_gap); gap.setChecked(Data.currencyGap.getValue()); -- 2.39.5