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
Visual message when no data fetched in gyroscope #1785
Conversation
@CloudyPadmal @neel1998 please check. |
recordedGyroArray = new ArrayList<>(); | ||
resetInstrumentData(); | ||
plotAllRecordedData(); | ||
}else{ |
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.
Reformat
noSensorText.setAllCaps(true); | ||
gyroLinearLayout.addView(noSensorText); | ||
|
||
|
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.
reformat
@@ -133,6 +154,8 @@ public void onDestroyView() { | |||
} | |||
if (sensorManager != null) { | |||
sensorManager.unregisterListener(gyroScopeSensorEventListener); | |||
}else{ |
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.
reformat
app/src/main/res/values/strings.xml
Outdated
@@ -831,4 +831,5 @@ | |||
<string name="setting_thermo_sensor_gain">setting_thermo_sensor_gain</string> | |||
<string name="default_value_thermo">0</string> | |||
<string name="thermo_default">°C</string> | |||
<string name="no_data_recorded_gyro">No data recorded as the sensor is not present in the device. Try with an external sensor.</string> |
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.
move to relevant section where variable related to gyro is
@CloudyPadmal done |
Fixes #1723
Changes: Graphs removed and a visual message to user when no data fetched
Screenshot/s for the changes:
Checklist: [Please tick following check boxes with
[x]
if the respective task is completed]strings.xml
,dimens.xml
andcolors.xml
without hard-coding themstrings.xml
,dimens.xml
orcolors.xml
APK for testing:
gyro.zip