Fix some typos (thanks!) #178

This commit is contained in:
cpfeiffer 2016-02-29 22:05:29 +01:00
parent 1b9f297ebe
commit cbe73f71a1
8 changed files with 13 additions and 12 deletions

View File

@ -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();
}
});

View File

@ -40,7 +40,7 @@ public interface EventHandler {
void onReboot();
void onHearRateTest();
void onHeartRateTest();
void onFindDevice(boolean start);

View File

@ -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);
}

View File

@ -253,7 +253,7 @@ public class DeviceCommunicationService extends Service {
break;
}
case ACTION_HEARTRATE_TEST: {
mDeviceSupport.onHearRateTest();
mDeviceSupport.onHeartRateTest();
break;
}
case ACTION_FETCH_ACTIVITY_DATA: {

View File

@ -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

View File

@ -534,7 +534,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
}
@Override
public void onHearRateTest() {
public void onHeartRateTest() {
if (supportsHeartRate()) {
try {
TransactionBuilder builder = performInitialized("HeartRateTest");

View File

@ -38,7 +38,7 @@ public class PebbleSupport extends AbstractSerialDeviceSupport {
}
@Override
public void onHearRateTest() {
public void onHeartRateTest() {
}

View File

@ -102,7 +102,7 @@ public class TestDeviceSupport extends AbstractDeviceSupport {
}
@Override
public void onHearRateTest() {
public void onHeartRateTest() {
}