Skip to content

Commit 7ece4ff

Browse files
committed
fix(android): refreshDeviceCache fix
1 parent 519338c commit 7ece4ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bluetooth.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,9 +2411,9 @@ export class Bluetooth extends BluetoothCommon {
24112411

24122412
private refreshDeviceCache( gatt: android.bluetooth.BluetoothGatt){
24132413
try {
2414-
const localMethod = gatt.getClass().getMethod('refresh', new java.lang.Class[0]);
2414+
const localMethod = gatt.getClass().getMethod('refresh', Array.create( java.lang.Class, 0));
24152415
if (localMethod != null) {
2416-
return localMethod.invoke(gatt, new Object[0]);
2416+
return localMethod.invoke(gatt, Array.create( java.lang.Object, 0));
24172417
}
24182418
}
24192419
catch (ex) {

0 commit comments

Comments
 (0)