Skip to content

Commit e342c9a

Browse files
msfjarviszx2c4
authored andcommitted
ui: use Material switch component
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent cf943b7 commit e342c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/main/java/com/wireguard/android/widget/ToggleSwitch.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ package com.wireguard.android.widget
88
import android.content.Context
99
import android.os.Parcelable
1010
import android.util.AttributeSet
11-
import android.widget.Switch
11+
import com.google.android.material.switchmaterial.SwitchMaterial
1212

13-
class ToggleSwitch @JvmOverloads constructor(context: Context?, attrs: AttributeSet? = null) : Switch(context, attrs) {
13+
class ToggleSwitch @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : SwitchMaterial(context, attrs) {
1414
private var isRestoringState = false
1515
private var listener: OnBeforeCheckedChangeListener? = null
1616
override fun onRestoreInstanceState(state: Parcelable) {

0 commit comments

Comments
 (0)