Disable encryption key setting if no identity key

The encryption key setting for the main device is now disabled if the identity key is not set. This prevents users from trying to set an encryption key for a device that doesn't have an identity key.
This commit is contained in:
darken
2025-06-06 06:03:41 +02:00
committed by Matthias Urhahn
parent 33ca43eaf1
commit a434a0bee0
3 changed files with 23 additions and 8 deletions
@@ -51,6 +51,7 @@
<Preference
android:icon="@drawable/ic_key_24"
android:key="core.maindevice.encryptionkey"
app:enabled="false"
android:summary="@string/settings_maindevice_encryptionkey_description"
android:title="@string/settings_maindevice_encryptionkey_label" />
</PreferenceCategory>