Remove ability to deselect all result capture method

kmm
Laurent 5 years ago
parent f67cc48cd4
commit 21d72247af
  1. 2
      app/build.gradle
  2. 3
      app/src/main/java/net/pokeranalytics/android/ui/modules/session/ResultCaptureSelectionPopup.kt

@ -107,7 +107,7 @@ dependencies {
// Android
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.work:work-runtime-ktx:2.4.0'

@ -31,6 +31,9 @@ class ResultCaptureSelectionPopup(
val titleTextView = view.findViewById<TextView>(R.id.title)
titleTextView.text = activity.getString(R.string.change_result_capture_method).toUpperCase()
val chipGroup = this.contentView.findViewById<ChipGroup>(R.id.result_capture_method)
chipGroup.isSelectionRequired = true
val netResultChip = view.findViewById<Chip>(R.id.chip_net_result)
netResultChip.isChecked = type == ResultCaptureType.NET_RESULT
netResultChip.isCheckedIconVisible = true

Loading…
Cancel
Save