diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-11-04 17:10:35 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-11-04 17:10:35 +0100 |
commit | b824e55277cf4a4a9042dc0fe30d0cc8939445dc (patch) | |
tree | 1b4bf896006988ac2eff135b30fdbb4384344501 /src/main/java/eu/siacs/conversations/ui/XmppActivity.java | |
parent | 11ecf43da7b3b850866402eea17627b3988309aa (diff) |
register nfc callback in every activity that provides a proper sharable uri
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/XmppActivity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java index 4c17dd56a..052385f6b 100644 --- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java @@ -588,6 +588,20 @@ public abstract class XmppActivity extends Activity { return null; } + @Override + public void onResume() { + super.onResume(); + if (this.getShareableUri()!=null) { + this.registerNdefPushMessageCallback(); + } + } + + @Override + public void onPause() { + super.onPause(); + this.unregisterNdefPushMessageCallback(); + } + protected void showQrCode() { String uri = getShareableUri(); if (uri!=null) { |