-
Notifications
You must be signed in to change notification settings - Fork 814
Thermometer settings added #1764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@CloudyPadmal @neel1998 please review. |
| label_statAvg.setText(R.string.avg_thermo_fahrenheit); | ||
| label_statMax.setText(R.string.max_thermo_fahrenheit); | ||
| label_statMin.setText(R.string.min_thermo_fahrenheit); | ||
| thermometer.setUnit("F"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put the degree sign to this as well similar to C
| public static final String KEY_INCLUDE_LOCATION = "include_location_sensor_data"; | ||
| public static final String KEY_UPDATE_PERIOD = "setting_thermo_update_period"; | ||
| public static final String KEY_THERMO_SENSOR_TYPE = "setting_thermo_sensor_type"; | ||
| public static final String KEY_THERMO_SENSOR_GAIN = "setting_thermo_sensor_gain"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a "Gain" for thermo sensor. Can remove this setting.
app/src/main/res/values/strings.xml
Outdated
| </string-array> | ||
|
|
||
| <string-array name="thermo_unit_list"> | ||
| <item>F</item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Degree sign
|
@CloudyPadmal check |
|
@ho-dor when the user opens the configuration for the first time. No unit is shown in select unit preference. Please cet C as default. Also add space in the menu title "Thermometer Configuration" |
The menu title is actually consistent with all the other instruments. |
|
I have the updated the default unit value . Please check the updated apk. |
Fixes #1756
Changes: Settings menu with the option to change units.
Screenshot/s for the changes:

Checklist: [Please tick following check boxes with
[x]if the respective task is completed]strings.xml,dimens.xmlandcolors.xmlwithout hard-coding themstrings.xml,dimens.xmlorcolors.xmlAPK for testing:
app-debug.zip