aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-31 22:50:35 +0200
committerChristian Schneppe <christian@pix-art.de>2018-03-31 22:50:35 +0200
commitb11f76bea6bbed42301433ca3ec55b66b08b8942 (patch)
treee7b75d5e3da0aac3211e771122819794f517b65b /src/main/java/de/pixart/messenger
parent92a0dc50159674f1b7d17bf70f4ff26893dab627 (diff)
add scan action to contact details
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
index d4b3218ee..bb0e668d6 100644
--- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
@@ -594,6 +594,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);