react-native-wakeword 1.1.83 → 1.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -205,9 +205,11 @@ export class KeyWordRNBridgeInstance {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
async unPauseDetection() {
|
|
208
|
-
// XXX BUG - FIX pause with false not working on unpause
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
// XXX BUG - FIX pause with false not working on unpause on Android.
|
|
209
|
+
if (Platform.OS === 'android') {
|
|
210
|
+
await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
211
|
+
await KeyWordRNBridge.pauseDetection(this.instanceId, true);
|
|
212
|
+
}
|
|
211
213
|
return await KeyWordRNBridge.unPauseDetection(this.instanceId);
|
|
212
214
|
}
|
|
213
215
|
|