]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Switch → SwitchMaterial in the currency selector
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 23 Dec 2020 20:53:32 +0000 (20:53 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 23 Dec 2020 20:55:17 +0000 (20:55 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/CurrencySelectorFragment.java

index 4993df37e1a71a4c93cf0b7561c53314da8d5d3b..e86d5015f77607302ffd0c1b367b7332235302ed 100644 (file)
@@ -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());