mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-11-22 15:48:54 +01:00
Cleanup: use lambda instead of runnable.
This commit is contained in:
@@ -61,13 +61,10 @@ public class BluetoothUtils {
|
||||
final Object mutex = new Object();
|
||||
|
||||
Handler handler = new Handler(Looper.getMainLooper());
|
||||
handler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
adapters.add(BluetoothAdapter.getDefaultAdapter());
|
||||
synchronized (mutex) {
|
||||
mutex.notify();
|
||||
}
|
||||
handler.post(() -> {
|
||||
adapters.add(BluetoothAdapter.getDefaultAdapter());
|
||||
synchronized (mutex) {
|
||||
mutex.notify();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user