diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-08 14:09:01 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-08 14:09:01 +0200 |
commit | bcf0a5482643f6d00b15db364d7c5544e25f7414 (patch) | |
tree | b74596b34c57bbd83a8c9b42ba260f8434253b25 /src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java | |
parent | 25d05543e9932bae0b606fc1783051e305c218f8 (diff) |
make camera feature optional
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java index ce4dad47e..841961a14 100644 --- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java @@ -584,7 +584,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp } else { binding.showInactiveDevices.setVisibility(View.GONE); } - binding.scanButton.setVisibility(hasKeys ? View.VISIBLE : View.GONE); + binding.scanButton.setVisibility(hasKeys && isCameraFeatureAvailable() ? View.VISIBLE : View.GONE); if (hasKeys) { binding.scanButton.setOnClickListener((v) -> ScanActivity.scan(this)); } |