diff --git a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
index 4573fa097..5b1ea6ec0 100644
--- a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
@@ -435,6 +435,10 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
} else {
binding.showInactiveDevices.setVisibility(View.GONE);
}
+ binding.scanButton.setVisibility(hasKeys ? View.VISIBLE : View.GONE);
+ if (hasKeys) {
+ binding.scanButton.setOnClickListener((v)-> ScanActivity.scan(this));
+ }
if (Config.supportOpenPgp() && contact.getPgpKeyId() != 0) {
hasKeys = true;
View view = inflater.inflate(R.layout.contact_key, binding.detailsContactKeys, false);
diff --git a/src/main/res/layout/activity_contact_details.xml b/src/main/res/layout/activity_contact_details.xml
index 048466d42..dd7b70115 100644
--- a/src/main/res/layout/activity_contact_details.xml
+++ b/src/main/res/layout/activity_contact_details.xml
@@ -118,25 +118,45 @@
+ android:orientation="vertical">
+ android:orientation="vertical"
+ android:padding="@dimen/card_padding_list">
-
+ android:orientation="horizontal">
+
+
+
+
+
+
diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml
index 486b25637..d51ac5be8 100644
--- a/src/main/res/layout/activity_muc_details.xml
+++ b/src/main/res/layout/activity_muc_details.xml
@@ -193,25 +193,36 @@
+ android:orientation="vertical">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="@dimen/card_padding_list">
-
+ android:layout_height="match_parent"
+ android:layout_marginTop="8dp"
+ android:orientation="horizontal"
+ android:layout_gravity="center_horizontal">
+
+
+
+
+
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 89bdea25a..589be72d4 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -691,8 +691,8 @@
I followed this link from a trusted sourceYou are about to verify the OMEMO keys of %1$s after clicking a link. This is only secure if you followed this link from a trusted source where only %2$s could have published this link.Verify OMEMO keys
- Show inactive devices
- Hide inactive devices
+ Show inactive
+ Hide inactiveDistrust deviceAre you sure you want to remove the verification for this device?\nThis device and messages coming from that device will be marked as untrusted.24 hours