We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519338c commit 7ece4ffCopy full SHA for 7ece4ff
src/bluetooth.android.ts
@@ -2411,9 +2411,9 @@ export class Bluetooth extends BluetoothCommon {
2411
2412
private refreshDeviceCache( gatt: android.bluetooth.BluetoothGatt){
2413
try {
2414
- const localMethod = gatt.getClass().getMethod('refresh', new java.lang.Class[0]);
+ const localMethod = gatt.getClass().getMethod('refresh', Array.create( java.lang.Class, 0));
2415
if (localMethod != null) {
2416
- return localMethod.invoke(gatt, new Object[0]);
+ return localMethod.invoke(gatt, Array.create( java.lang.Object, 0));
2417
}
2418
2419
catch (ex) {
0 commit comments