forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -60,7 +60,7 @@ public class BluetoothUtils {
|
||||
while (adapters.isEmpty()) {
|
||||
synchronized (mutex) {
|
||||
try {
|
||||
mutex.wait(UnitConversions.ONE_SECOND);
|
||||
mutex.wait(UnitConversions.ONE_SECOND_MS);
|
||||
} catch (InterruptedException e) {
|
||||
Log.e(TAG, "Interrupted while waiting for default bluetooth adapter", e);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,9 @@ public class UnitConversions {
|
||||
|
||||
// Time
|
||||
// 1 second in milliseconds
|
||||
public static final long ONE_SECOND = UnitConversions.S_TO_MS;
|
||||
public static final long ONE_SECOND_MS = UnitConversions.S_TO_MS;
|
||||
public static final long ONE_MINUTE_MS = (long) (UnitConversions.MIN_TO_S * UnitConversions.S_TO_MS);
|
||||
|
||||
// multiplication factor to convert milliseconds to seconds
|
||||
public static final double MS_TO_S = 1d / S_TO_MS;
|
||||
// multiplication factor to convert minutes to seconds
|
||||
|
||||
Reference in New Issue
Block a user