summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/android/androidbroadcastreceiver_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-03-03 13:45:04 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-11 10:58:35 +0100
commitb2cd03fb14c9727e23d5ada409551ab236d1abc6 (patch)
treecf81bfc2da2a9f5148cee8e1c5a8aa96a99bc4a7 /src/bluetooth/android/androidbroadcastreceiver_p.h
parent6106ea0ebf52845a34a291a44730e81d4a3e9108 (diff)
Android: Don't directly use the action string values but refer to the fields.
This increases the robustness of the code since the field value is not an implementation detail. In addition we guard the action field lookup against fields which have been introduced later than the standard SDK version 10 supported by Qt. Task-number: QTBUG-36810 Change-Id: Ib6582e77202d40aaf116fe8dfa81562d89367ea2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/bluetooth/android/androidbroadcastreceiver_p.h')
-rw-r--r--src/bluetooth/android/androidbroadcastreceiver_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/android/androidbroadcastreceiver_p.h b/src/bluetooth/android/androidbroadcastreceiver_p.h
index baae6798..303e4ae8 100644
--- a/src/bluetooth/android/androidbroadcastreceiver_p.h
+++ b/src/bluetooth/android/androidbroadcastreceiver_p.h
@@ -58,7 +58,7 @@ public:
AndroidBroadcastReceiver(QObject* parent = 0);
virtual ~AndroidBroadcastReceiver();
- void addAction(const QString &filter);
+ void addAction(const QAndroidJniObject &filter);
bool isValid() const;
protected: