fix: No USB_HOST feature requirement for eUICC erasure
All checks were successful
/ build-debug (push) Successful in 5m15s
All checks were successful
/ build-debug (push) Successful in 5m15s
This commit is contained in:
parent
c2659ddb69
commit
f6c50490b8
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
package im.angry.openeuicc.ui
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
|
@ -79,10 +78,8 @@ open class SettingsFragment: PreferenceFragmentCompat() {
|
|||
requirePreference<CheckBoxPreference>("pref_developer_ignore_tls_certificate")
|
||||
.bindBooleanFlow(preferenceRepository.ignoreTLSCertificateFlow)
|
||||
|
||||
requirePreference<CheckBoxPreference>("pref_developer_euicc_memory_reset").apply {
|
||||
isVisible = context.packageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)
|
||||
bindBooleanFlow(preferenceRepository.euiccMemoryResetFlow)
|
||||
}
|
||||
requirePreference<CheckBoxPreference>("pref_developer_euicc_memory_reset")
|
||||
.bindBooleanFlow(preferenceRepository.euiccMemoryResetFlow)
|
||||
}
|
||||
|
||||
protected fun <T : Preference> requirePreference(key: CharSequence) =
|
||||
|
|
Loading…
Add table
Reference in a new issue