1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00
Commit Graph

259 Commits

Author SHA1 Message Date
vanous
98bb01dfa1 Make charts tabs selectable sortable 2020-11-28 23:42:30 +01:00
vanous
5c3c23ea50 Improve Sports Activities dashboard and Filter
- makes nicer dashboard, unify with design in Activity List
- dashboard is now part of the sports activities list (had to overcome
  some hurdles, because of the multiselect for sharing)
- add icons to Spinners in Sports Filter
2020-11-26 17:19:08 +01:00
vanous
e3a5a63e08 Separate AboutUser and link to it from Charts Settings 2020-11-14 10:06:55 +01:00
vanous
71f6fd77cb Add final tweaks to Daily Sessions List Dashboard view 2020-11-13 14:22:15 +01:00
vanous
447e9110db Simplify HR calculation 2020-11-12 13:50:44 +01:00
vanous
db7280b359 Adjust personal settings defaults to prevent zero values
Show/hide intensity in sleep per preference
Optimize icons
2020-11-12 13:50:44 +01:00
vanous
551a5c1a66 Add Activity List Dashboard/Summary view 2020-11-12 13:50:44 +01:00
vanous
9c90452f92 Add intensity to Sleep charts 2020-11-12 13:50:44 +01:00
vanous
4c39dceecd Add minimum/maximum heart rate popup, fixes #1483 2020-11-01 23:58:54 +01:00
vanous
329c47fff2 Add heart rate average to Activity and Sleep → Sleep 2020-11-01 11:06:59 +01:00
vanous
b364029f82 Level up icons in Activity List. Improve empty record. 2020-10-27 09:20:32 +01:00
vanous
f60ba212c6 Make Sports Activities list use Activity List style 2020-10-17 14:55:12 +02:00
vanous
e7b5053b13 Add Step length preference to About you
Add new distance icon
Distance in meters or km based on distance
Remove unnecessary definitions
Optimize new drawables
Map intensity to min steps
2020-10-16 21:07:57 +02:00
vanous
92407d3490 Fix trailing activity 0 duration
Hide intensity if not present in data
2020-10-16 21:07:34 +02:00
vanous
64d8504b7d New item layout, icons, logic and defaults for daily activity list. 2020-10-14 01:52:27 +02:00
vanous
26f199a010 Remove testing reflection code trying to disable pull to refresh in Activity List 2020-10-11 18:24:36 +02:00
vanous
46a1d2908a Sharing Sports Activity improvements 2020-10-11 18:09:22 +02:00
vanous
0b7d37c7eb Improve Activity List processing 2020-10-11 09:40:15 +02:00
vanous
bd90b59f92 Initial implementation of Activity list. 2020-10-10 07:19:42 +02:00
vanous
7371fb37c2 Add charts into Sports Activity Details. Improve pingpong icon. 2020-09-23 21:53:16 +02:00
Bot
40852d3641 Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
vanous
a1a010b4b4 Fix average calculation when scrolling between days 2020-04-11 14:42:37 +02:00
vanous
630c58c8f4 Edit Changelog
Do not count days with 0 steps into average/goal.

Add sleep to the 0 days not calculation.

Do not count days with 0 steps into average/goal.
2020-04-09 18:31:16 +02:00
License Bot
d6fa5d0dd5 Update license headers 2020-01-09 10:44:32 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
vanous
c1d024876d Add forward/backward buttons to charts 2019-11-04 20:42:59 +01:00
vanous
71b393932f Add switch to set old/new style of sleep detection range 2019-10-26 10:39:15 +02:00
vanous
31ce36e335 Add alternative color to heartrate in charts 2019-10-24 22:59:52 +02:00
vanous
5c0c5ed952 Check for non empty list of sleep sessions 2019-10-17 14:35:45 +02:00
vanous
b5e3374a9e Limit sleep charts range 2019-10-17 14:35:45 +02:00
Cre3per
81aa66c2d4 removed todo.
fixed typo.
2019-10-12 12:44:38 +02:00
Q-er
371ac276a5 Allow multiple sleep sessions per day 2019-09-22 21:34:03 +02:00
vanous
b3d1068870 Change color, refresh charts 2019-09-14 00:24:40 +02:00
vanous
132e92041e Split preferences, add chart settings activity, add button 2019-09-14 00:24:40 +02:00
vanous
957d441859 Add Status and Alarms widget
Squashed commits from #1604
2019-09-01 21:35:53 +02:00
Andreas Shimokawa
984db60c5f Fix formatted values for charts 2019-08-24 12:55:33 +02:00
Andreas Shimokawa
a69a139602 Migrate to upstream MPAndroidChart v3.1.0 2019-08-24 12:41:26 +02:00
vanous
2d233141b4 adds custom renderer for better view of many columns 2019-08-24 11:58:32 +02:00
vanous
a263059317 Modify charts range based on settings. More/Less labels density. 2019-08-13 14:30:54 +02:00
vanous
80bd31d894 Modify Charts Fragment's Titles 2019-08-13 14:30:54 +02:00
vanous
28fde846ea Modify getTitle(). Probably not visible, but done for completness. 2019-08-13 14:30:54 +02:00
vanous
5fe4ea7246 Clean commented code 2019-08-12 14:13:20 +02:00
vanous
7809655ef4 Add Average Settings. Addformat method to get average. 2019-08-12 14:13:20 +02:00
vanous
f11628b42b Add Averages to Charts 2019-08-12 14:13:20 +02:00
License Bot
beedb653e6 Update license headers 2019-02-13 20:43:31 +01:00
Daniele Gobbetti
75d3dffb14 Migrate to androidx support libraries and bump compile SDK version
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00
Andreas Shimokawa
a354bdca30 try to satisfy lgtm 2018-12-18 10:26:29 +01:00
cpfeiffer
cfddba0e4d Remove unused field and redundant casts 2018-09-17 23:02:18 +02:00
cpfeiffer
934f36f45a Use ActivityUser.defaultUserStepsGoal instead of hardcoded values
ActivityUser has room for improvement, though.
2018-09-16 20:49:00 +02:00
Carsten Pfeiffer
226ae54ae6
Merge pull request #1265 from elagin/live_activity_2
Enhancement LiveActivityFragment (2)
2018-09-16 20:43:59 +02:00
Pavel
62e080d5ac
Update LiveActivityFragment.java
I'm sorry, I wanted to add entry if > min HR
2018-09-16 20:35:28 +03:00
cpfeiffer
5028458fe8 Fix some static analysis warnings 2018-09-16 13:54:56 +02:00
Pavel Elagin
e85257b545 Show current / max heart rate. Ignore heart rate < user settings. Invisible button bar into LiveActivity. Auto scale totalStepsChart. Fix time x axis history chart. Draw total and per minute steps. Set limit on per minute chart by user settings. 2018-09-13 12:51:52 +03:00
cpfeiffer
aee0e54d05 Handle possible negative steps values 2018-09-11 23:08:29 +02:00
cpfeiffer
fbcd2840ca No need to call method twice 2018-09-11 23:04:18 +02:00
cpfeiffer
88ad6cf0e0 Improve balance handling 2018-09-10 23:41:01 +02:00
Pavel Elagin
4592d35cc6 Calculation and display of weekly balance by steps and time of sleep. 2018-09-10 23:41:01 +02:00
Dikay900
64da085942 make heart rate values configurable and use singleton for heartrateutils
to listen for preference changes
2018-09-02 12:57:52 +02:00
License Bot
696653eabf Update contributors list and license headers. 2018-08-29 21:30:23 +02:00
cpfeiffer
0145013597 Add some @Nullable 2018-08-17 00:13:38 +02:00
Carsten Pfeiffer
26fcb3cbbb
Merge pull request #1212 from elagin/legend_wordwrap_center
Enable word wrap and set center horizontal alignment for legend into …
2018-08-16 23:58:00 +02:00
Pavel Elagin
354ab79285 Display start and end sleep. #164 2018-08-16 17:59:56 +03:00
Pavel Elagin
65d36d2c81 Enable word wrap and set center horizontal alignment for legend into ActivitySleepChart and WeekSleepChart 2018-08-15 18:03:32 +03:00
cpfeiffer
f2ff1991da Comment out chatty debug output 2018-07-09 22:55:20 +02:00
Andreas Shimokawa
29a05f1d8f refactor onFetchActivityData() into onFetchRecordedData(dataTypes) to make it more generic
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P

Also fix some android studio warnings on the go...
2018-03-31 16:21:25 +02:00
Andreas Shimokawa
a8fdcb50f3 fix bad merge from master 2018-03-13 21:17:14 +01:00
Andreas Shimokawa
3d3cc1f40c Merge branch 'master' into bip-wip 2018-03-13 17:27:18 +01:00
Andreas Shimokawa
0ea5c3dee1 Charts: Ignore heart rate data if sample indicates that the device was not worn
Closes #1005
2018-02-26 22:06:56 +01:00
License Bot
238bacde9f Update license headers 2018-02-26 14:27:33 +01:00
Daniele Gobbetti
331ca6a47e Merge branch 'master' into bip-wip 2017-11-01 22:12:13 +01:00
Daniele Gobbetti
e7839f1c39 Replace the Combined Charts with simple Line Charts
Fixes #808
The datasets had to be separed in order to fill the area below each line with the right color.
2017-11-01 17:35:05 +01:00
Daniele Gobbetti
98b04dd2fc Allow disabling left/right swipe on the graphs
Fixes #860
 Added preference to control this option
 Swiping down will still toggle a sync of the data from the device (if connected) in any case
2017-11-01 09:07:01 +01:00
cpfeiffer
eac8f5f8c7 Extract isValidHeartRate() method to HeartRateUtils 2017-10-31 23:16:39 +01:00
Andreas Shimokawa
1ff8fbac55 switch speed zones and live activity tabs
(makes it easier, since live activity is not for all devices9
2017-08-27 22:00:28 +02:00
Daniele Gobbetti
41feb008a7 Various style fixes
The top axis had the default color and was not visible with dark theme.
Enabled granularity of 1 to avoid fractions of steps being shown on the axis.
2017-08-27 17:26:24 +02:00
Andreas Shimokawa
b4639b9062 Speed Zones Chart: remove unused legend code 2017-08-27 00:04:08 +02:00
Andreas Shimokawa
6fb0a977fc rename StatsChartFragment to SpeedZonesFragment 2017-08-26 23:55:11 +02:00
Vebryn
ea6457c359 fix building error 2017-08-26 23:36:59 +02:00
Vebryn
a61cbddb5d simplifying speed zones and re-enabling 2017-08-26 23:35:16 +02:00
License Bot
15f4ce2869 Update license headers 2017-08-25 11:25:01 +02:00
cpfeiffer
c1925a4e64 Properly handle and distribute language change #733
Also centralize QUIT handling in GBActivity
2017-07-31 22:49:05 +02:00
Andreas Shimokawa
23d12f7289 Charts: various visual improvements
Thanks @girlwithnoname
2017-07-23 17:56:32 +02:00
Andreas Shimokawa
a4e35b49b2 Only show realtime chart on device supporting it 2017-06-02 21:59:46 +02:00
Translation Bot
fb8f866031 disable "Speed Zones" graph
It is not ready yet and full of bugs
2017-06-02 21:42:41 +02:00
cpfeiffer
1d79c9d93d Dark theme: set some text colors for the speed zone tab 2017-05-18 23:26:04 +02:00
Andreas Shimokawa
7cce2aeb8b Cleanup Speed zones chart code
- Remove unused stuff
- rename "pie" and "sleed" (there is no sleep and no pie here :)
2017-05-15 22:19:50 +02:00
Vebryn
7dc9c28c74 initial version of speed zones tab (#674)
* #673 initial version of speed zones tab

* #673 fix copyrights and initial step speed length
2017-05-14 23:09:27 +02:00
License Bot
8af9054f2d Update license headers 2017-04-26 00:14:25 +02:00
cpfeiffer
4a4a1e25df Properly format the sleep goal as a duration, not as a time
Also suppress trailing zeros, e.g. display
8h instead of 8h 0m
2017-04-08 23:16:33 +02:00
Alberto
155ce5be02 Font size bar chart (#645)
Increas font size bar chart

small fix that improves the readability of the values on bar charts
2017-04-08 22:58:58 +02:00
cpfeiffer
2feb3bed47 Reduce animation time from 350ms to 250ms
(seemed a bit laggy to me)
2017-04-08 22:52:22 +02:00
Daniele Gobbetti
dd5ee03932 Set the right color for the Pie charts entry labels.
Closes #647 by showing the text also on the light theme, instead of hiding it everywhere.
2017-04-08 15:50:13 +02:00
Daniele Gobbetti
5a019c238a Hide the dateBar but don't set it as gone, this prevents charts from changing size when swiping. 2017-04-08 15:16:35 +02:00
cpfeiffer
60ed9ca373 Remove default intent actions out of if-condition 2017-04-07 21:55:47 +02:00
Andreas Shimokawa
3675386c13 Fix spider arms haging out of pie slices
Also make the Pie in week sleep chart look as the other pie chart in "Your Sleep"
2017-04-05 22:42:54 +02:00
cpfeiffer
f48729cc64 Pie Charts: some improvements wrt the labels
Still room for optimization.

Thanks to Alberto!
2017-04-05 00:08:17 +02:00
walkjivefly
f0d81818b3 Swap deep and light sleep colours in charts
This partially "fixes" issue #442. The effect of the change is
purely cosmetic: deep sleep is (once again) dark blue, light sleep
is (once again) light blue.
2017-04-02 19:49:55 +02:00
Daniele Gobbetti
e89ba529c3 Apply some Material design guidelines to the charts
- replace the PagerTabStrip with a TabLayout (moved to top and scrollable)
- move the date selection to the bottom
- do not update the activity title as the tab name is much more visible now
2017-04-01 17:47:54 +02:00
Andreas Shimokawa
173b4fbbe6 Add legend ans labels to weekly sleep charts
Also remove the "missing sleep" gray entry to avoid confusion
2017-03-31 23:42:25 +02:00
cpfeiffer
14552a1a80 Disable live activity tracking when activity is paused
Fixes #496
2017-03-20 23:01:28 +01:00