0
0
mirror of https://github.com/mueller-ma/PrepaidBalance.git synced 2024-09-20 00:12:15 +02:00

Display MCC and MNC in Settings

Prepare for #10
This commit is contained in:
mueller-ma 2021-06-09 13:23:09 +02:00
parent 2a14f76784
commit 9ac4c56999
3 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,10 @@ class PreferenceActivity : AppCompatActivity() {
.show()
true
}
val providerCodesPref = getPreference("provider_codes")
val config = preferenceManager.context.resources.configuration
providerCodesPref.summary = "MCC: ${config.mcc}\nMNC: ${config.mnc}"
}
}
}

View File

@ -23,4 +23,5 @@
<string name="clear_current_data_summary">Data older than 6 months is deleted automatically</string>
<string name="channel_name_error">Error</string>
<string name="duplicates">Don\'t save duplicate values</string>
<string name="debug">Troubleshooting</string>
</resources>

View File

@ -40,4 +40,11 @@
android:inputType="number"
android:defaultValue="1.00" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/debug">
<Preference
android:key="provider_codes"
android:enabled="false"
android:persistent="false" />
</PreferenceCategory>
</PreferenceScreen>