Skip to content

Commit

Permalink
Use MD3 switches for files backup config
Browse files Browse the repository at this point in the history
  • Loading branch information
grote authored and theimpulson committed Jul 2, 2024
1 parent d412550 commit ccc014d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.SwitchCompat
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.Adapter
import com.google.android.material.materialswitch.MaterialSwitch
import org.calyxos.backup.storage.R
import org.calyxos.backup.storage.api.EXTERNAL_STORAGE_PROVIDER_AUTHORITY

Expand Down Expand Up @@ -65,7 +65,7 @@ internal class BackupContentAdapter(private val listener: ContentClickListener)
}

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) {
super.bind(item)
Expand Down
2 changes: 1 addition & 1 deletion storage/lib/src/main/res/layout/item_media.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
app:layout_constraintTop_toTopOf="parent"
tools:text="@string/content_videos" />

<androidx.appcompat.widget.SwitchCompat
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/switchView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit ccc014d

Please sign in to comment.