diff --git a/app/src/main/java/dev/lowrespalmtree/comet/Identities.kt b/app/src/main/java/dev/lowrespalmtree/comet/Identities.kt
index 51cc337..587f404 100644
--- a/app/src/main/java/dev/lowrespalmtree/comet/Identities.kt
+++ b/app/src/main/java/dev/lowrespalmtree/comet/Identities.kt
@@ -72,7 +72,6 @@ object Identities {
private fun deleteClientCert(alias: String) {
val keyStore = KeyStore.getInstance("AndroidKeyStore").also { it.load(null) }
- Log.i(TAG, keyStore.aliases().toList().joinToString { it })
if (keyStore.containsAlias(alias)) {
keyStore.deleteEntry(alias)
Log.i(TAG, "deleteClientCert: deleted entry with alias \"$alias\"")
diff --git a/app/src/main/java/dev/lowrespalmtree/comet/IdentityDialog.kt b/app/src/main/java/dev/lowrespalmtree/comet/IdentityDialog.kt
index d97a31e..20ccc01 100644
--- a/app/src/main/java/dev/lowrespalmtree/comet/IdentityDialog.kt
+++ b/app/src/main/java/dev/lowrespalmtree/comet/IdentityDialog.kt
@@ -19,12 +19,14 @@ class IdentityDialog(
fun show() {
binding = DialogIdentityBinding.inflate(LayoutInflater.from(context))
binding.labelInput.setText(identity.name.orEmpty())
+ binding.urlInput.setText(identity.urls.getOrNull(0).orEmpty())
binding.aliasText.text = identity.key
AlertDialog.Builder(context)
.setTitle(R.string.edit_identity)
.setView(binding.root)
.setPositiveButton(android.R.string.ok) { _, _ ->
identity.name = binding.labelInput.text.toString()
+ identity.urls = arrayListOf(binding.urlInput.text.toString())
listener.onSaveIdentity(identity)
}
.create()
diff --git a/app/src/main/res/layout/dialog_identity.xml b/app/src/main/res/layout/dialog_identity.xml
index a4ea2ce..fe29ca5 100644
--- a/app/src/main/res/layout/dialog_identity.xml
+++ b/app/src/main/res/layout/dialog_identity.xml
@@ -3,12 +3,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
+
android:orientation="vertical">
+ android:text="@string/identity_name"
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
+
+
+ android:text="@string/identity_usages"
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
+
+
+
+
+
+
Confirm
Are you sure you want to delete this identity? The client certificate cannot be retrieved afterwards.
Edit
+ Active URL paths
\ No newline at end of file