Fix some typos (thanks!) #178
This commit is contained in:
parent
1b9f297ebe
commit
cbe73f71a1
|
@ -53,7 +53,7 @@ public class DebugActivity extends Activity {
|
||||||
private Button setMusicInfoButton;
|
private Button setMusicInfoButton;
|
||||||
private Button setTimeButton;
|
private Button setTimeButton;
|
||||||
private Button rebootButton;
|
private Button rebootButton;
|
||||||
private Button HearRateButton;
|
private Button HeartRateButton;
|
||||||
private Button exportDBButton;
|
private Button exportDBButton;
|
||||||
private Button importDBButton;
|
private Button importDBButton;
|
||||||
private Button deleteDBButton;
|
private Button deleteDBButton;
|
||||||
|
@ -186,11 +186,12 @@ public class DebugActivity extends Activity {
|
||||||
GBApplication.deviceService().onReboot();
|
GBApplication.deviceService().onReboot();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
HearRateButton = (Button) findViewById(R.id.HearRateButton);
|
HeartRateButton = (Button) findViewById(R.id.HearRateButton);
|
||||||
HearRateButton.setOnClickListener(new View.OnClickListener() {
|
HeartRateButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
GBApplication.deviceService().onHearRateTest();
|
GB.toast("Measuring heart rate, please wait...", Toast.LENGTH_SHORT, GB.INFO);
|
||||||
|
GBApplication.deviceService().onHeartRateTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public interface EventHandler {
|
||||||
|
|
||||||
void onReboot();
|
void onReboot();
|
||||||
|
|
||||||
void onHearRateTest();
|
void onHeartRateTest();
|
||||||
|
|
||||||
void onFindDevice(boolean start);
|
void onFindDevice(boolean start);
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ public class GBDeviceService implements DeviceService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHearRateTest() {
|
public void onHeartRateTest() {
|
||||||
Intent intent = createIntent().setAction(ACTION_HEARTRATE_TEST);
|
Intent intent = createIntent().setAction(ACTION_HEARTRATE_TEST);
|
||||||
invokeService(intent);
|
invokeService(intent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,7 +253,7 @@ public class DeviceCommunicationService extends Service {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ACTION_HEARTRATE_TEST: {
|
case ACTION_HEARTRATE_TEST: {
|
||||||
mDeviceSupport.onHearRateTest();
|
mDeviceSupport.onHeartRateTest();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ACTION_FETCH_ACTIVITY_DATA: {
|
case ACTION_FETCH_ACTIVITY_DATA: {
|
||||||
|
|
|
@ -195,11 +195,11 @@ public class ServiceDeviceSupport implements DeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHearRateTest() {
|
public void onHeartRateTest() {
|
||||||
if (checkBusy("heartrate")) {
|
if (checkBusy("heartrate")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
delegate.onHearRateTest();
|
delegate.onHeartRateTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -534,7 +534,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHearRateTest() {
|
public void onHeartRateTest() {
|
||||||
if (supportsHeartRate()) {
|
if (supportsHeartRate()) {
|
||||||
try {
|
try {
|
||||||
TransactionBuilder builder = performInitialized("HeartRateTest");
|
TransactionBuilder builder = performInitialized("HeartRateTest");
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class PebbleSupport extends AbstractSerialDeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHearRateTest() {
|
public void onHeartRateTest() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class TestDeviceSupport extends AbstractDeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onHearRateTest() {
|
public void onHeartRateTest() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue