From: Damyan Ivanov Date: Wed, 23 Dec 2020 20:53:32 +0000 (+0000) Subject: Switch → SwitchMaterial in the currency selector X-Git-Tag: v0.16.0~20 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=2f8d106cbcda51893aac741e5d4b64333f217f1f;p=mobile-ledger.git Switch → SwitchMaterial in the currency selector --- 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());