Skip to content

Commit fcba2eb

Browse files
author
SBALAVIGNESH123
committed
Fix: Define undefined adapter variable in ConnectionThread
1 parent ff4c1a9 commit fcba2eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

play-services-wearable/core/src/main/java/org/microg/gms/wearable/WearableImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ private class ConnectionThread extends Thread {
686686
public void run() {
687687
while (!isInterrupted()) {
688688
try {
689+
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
689690
if (adapter != null && adapter.isEnabled()) {
690691
Set<BluetoothDevice> bondedDevices = adapter.getBondedDevices();
691692
if (bondedDevices != null) {

0 commit comments

Comments
 (0)