fixed bug

This commit is contained in:
lixiaopeng
2022-08-30 11:20:04 +08:00
parent a4e48a5b5a
commit d27cea94e6

View File

@@ -413,7 +413,9 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
}
}
// Log.d("liyz", "connectBluetooth macAddress = " + macAddress + "---pos = " + pos);
method.invoke(mAreadlyConnectedList.get(pos));
if (mAreadlyConnectedList.size() > pos && (pos >= 0)) {
method.invoke(mAreadlyConnectedList.get(pos));
}
} catch (NoSuchMethodException e) {
e.printStackTrace();