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 setTimeButton;
|
||||
private Button rebootButton;
|
||||
private Button HearRateButton;
|
||||
private Button HeartRateButton;
|
||||
private Button exportDBButton;
|
||||
private Button importDBButton;
|
||||
private Button deleteDBButton;
|
||||
|
@ -186,11 +186,12 @@ public class DebugActivity extends Activity {
|
|||
GBApplication.deviceService().onReboot();
|
||||
}
|
||||
});
|
||||
HearRateButton = (Button) findViewById(R.id.HearRateButton);
|
||||
HearRateButton.setOnClickListener(new View.OnClickListener() {
|
||||
HeartRateButton = (Button) findViewById(R.id.HearRateButton);
|
||||
HeartRateButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
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 onHearRateTest();
|
||||
void onHeartRateTest();
|
||||
|
||||
void onFindDevice(boolean start);
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ public class GBDeviceService implements DeviceService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onHearRateTest() {
|
||||
public void onHeartRateTest() {
|
||||
Intent intent = createIntent().setAction(ACTION_HEARTRATE_TEST);
|
||||
invokeService(intent);
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ public class DeviceCommunicationService extends Service {
|
|||
break;
|
||||
}
|
||||
case ACTION_HEARTRATE_TEST: {
|
||||
mDeviceSupport.onHearRateTest();
|
||||
mDeviceSupport.onHeartRateTest();
|
||||
break;
|
||||
}
|
||||
case ACTION_FETCH_ACTIVITY_DATA: {
|
||||
|
|
|
@ -195,11 +195,11 @@ public class ServiceDeviceSupport implements DeviceSupport {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onHearRateTest() {
|
||||
public void onHeartRateTest() {
|
||||
if (checkBusy("heartrate")) {
|
||||
return;
|
||||
}
|
||||
delegate.onHearRateTest();
|
||||
delegate.onHeartRateTest();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -534,7 +534,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onHearRateTest() {
|
||||
public void onHeartRateTest() {
|
||||
if (supportsHeartRate()) {
|
||||
try {
|
||||
TransactionBuilder builder = performInitialized("HeartRateTest");
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PebbleSupport extends AbstractSerialDeviceSupport {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onHearRateTest() {
|
||||
public void onHeartRateTest() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ public class TestDeviceSupport extends AbstractDeviceSupport {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onHearRateTest() {
|
||||
public void onHeartRateTest() {
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue