Compare commits
1 commit
e03a13dfda
...
89b5e33cd2
Author | SHA1 | Date | |
---|---|---|---|
89b5e33cd2 |
3 changed files with 9 additions and 4 deletions
|
@ -4,6 +4,7 @@ import android.content.Intent
|
|||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Debug
|
||||
import android.provider.Settings
|
||||
import android.widget.Toast
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
|
@ -11,6 +12,7 @@ import androidx.preference.CheckBoxPreference
|
|||
import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceCategory
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import im.angry.openeuicc.common.BuildConfig
|
||||
import im.angry.openeuicc.common.R
|
||||
import im.angry.openeuicc.util.*
|
||||
import kotlinx.coroutines.flow.collect
|
||||
|
@ -78,8 +80,8 @@ open class SettingsFragment: PreferenceFragmentCompat() {
|
|||
requirePreference<CheckBoxPreference>("pref_developer_ignore_tls_certificate")
|
||||
.bindBooleanFlow(preferenceRepository.ignoreTLSCertificateFlow)
|
||||
|
||||
requirePreference<CheckBoxPreference>("pref_developer_euicc_memory_reset")
|
||||
.bindBooleanFlow(preferenceRepository.euiccMemoryResetFlow)
|
||||
requirePreference<CheckBoxPreference>("pref_developer_euicc_memory_reset").
|
||||
bindBooleanFlow(preferenceRepository.euiccMemoryResetFlow)
|
||||
}
|
||||
|
||||
protected fun <T : Preference> requirePreference(key: CharSequence) =
|
||||
|
|
|
@ -4,15 +4,18 @@
|
|||
<item
|
||||
android:id="@+id/show_notifications"
|
||||
android:title="@string/profile_notifications_show"
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/euicc_info"
|
||||
android:title="@string/euicc_info"
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/euicc_memory_reset"
|
||||
android:title="@string/euicc_memory_reset"
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
|
@ -185,8 +185,8 @@
|
|||
<string name="pref_developer_unfiltered_profile_list_desc">Include non-production profiles in the list</string>
|
||||
<string name="pref_developer_ignore_tls_certificate">Ignore SM-DP+ TLS certificate</string>
|
||||
<string name="pref_developer_ignore_tls_certificate_desc">Accept any TLS certificate used by the RSP server</string>
|
||||
<string name="pref_developer_euicc_memory_reset">Allow Erase Chip (USB only)</string>s
|
||||
<string name="pref_developer_euicc_memory_reset_desc">Don\'t erase your eSIM as a troubleshooting step unless directed to by your carrier.</string>
|
||||
<string name="pref_developer_euicc_memory_reset">Allow Erase Chip (USB only)</string>
|
||||
<string name="pref_developer_euicc_memory_reset_desc">Don\'t erase your eSIM as a troubleshooting step unless directed to by your carrier.</string>
|
||||
<string name="pref_info">Info</string>
|
||||
<string name="pref_info_app_version">App Version</string>
|
||||
<string name="pref_info_source_code">Source Code</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue