Use MD3 switches for files backup config
This commit is contained in:
parent
0dcab41fd1
commit
07116b4f4c
2 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ import android.view.ViewGroup
|
||||||
import android.widget.ImageButton
|
import android.widget.ImageButton
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.appcompat.widget.SwitchCompat
|
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import androidx.recyclerview.widget.RecyclerView.Adapter
|
import androidx.recyclerview.widget.RecyclerView.Adapter
|
||||||
|
import com.google.android.material.materialswitch.MaterialSwitch
|
||||||
import org.calyxos.backup.storage.R
|
import org.calyxos.backup.storage.R
|
||||||
import org.calyxos.backup.storage.api.EXTERNAL_STORAGE_PROVIDER_AUTHORITY
|
import org.calyxos.backup.storage.api.EXTERNAL_STORAGE_PROVIDER_AUTHORITY
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ internal class BackupContentAdapter(private val listener: ContentClickListener)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal inner class MediaHolder(view: View) : ViewHolder(view) {
|
internal inner class MediaHolder(view: View) : ViewHolder(view) {
|
||||||
private val switch: SwitchCompat = view.findViewById(R.id.switchView)
|
private val switch: MaterialSwitch = view.findViewById(R.id.switchView)
|
||||||
|
|
||||||
override fun bind(item: BackupContentItem) {
|
override fun bind(item: BackupContentItem) {
|
||||||
super.bind(item)
|
super.bind(item)
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:text="@string/content_videos" />
|
tools:text="@string/content_videos" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<com.google.android.material.materialswitch.MaterialSwitch
|
||||||
android:id="@+id/switchView"
|
android:id="@+id/switchView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
Loading…
Reference in a new issue