1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 01:55:50 +01:00

Fine-tune filter. Ignore BaseAltitude == 20000.

This commit is contained in:
vanous 2020-09-07 18:16:29 +02:00
parent 6c86381fa8
commit ac1b65e727
3 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class ActivitySummaryJsonSummary {
if (jsonSummary != null) {
//add additionally computed values here
if (item.getBaseAltitude() != null) {
if (item.getBaseAltitude() != null && item.getBaseAltitude() != -20000) {
JSONObject baseAltitudeValues;
try {
baseAltitudeValues = new JSONObject();

View File

@ -79,6 +79,7 @@
<TextView
android:id="@+id/textViewFromData"
android:hint="@string/activity_filter_from_placeholder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="textStart"
@ -111,6 +112,7 @@
<TextView
android:id="@+id/textViewToData"
android:hint="@string/activity_filter_to_placeholder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="textStart"

View File

@ -1010,6 +1010,9 @@
<string name="sports_activity_quick_filter_30days">30 days</string>
<string name="sports_activity_quick_filter_select">Time period</string>
<string name="activity_summaries_all_devices">All devices</string>
<string name="activity_filter_from_placeholder">distant past</string>
<string name="activity_filter_to_placeholder">today</string>
<!-- swim styles -->