1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-24 05:50:47 +02:00
Commit Graph

873 Commits

Author SHA1 Message Date
vanous
63fc6b7ab6 make Battery Info time span jump as calendar months and not as days 2021-04-02 16:06:21 +02:00
vanous
9fc02ff09b move transliteration to per device to DeviceCommunicationService, plus migration, fix #2237 2021-03-28 13:33:08 +02:00
Andreas Shimokawa
9dc4dde5e7 Amazfit Neo: Support sound settings 2021-03-24 20:02:48 +01:00
Arjan Schrijver
cff4b65fb8 Fossil Hybrid HR: Sync notification dismissals to watch (#2219)
Fossil Hybrid HR: Move check for autoremove_notifications pref to NotificationListener

Fossil Hybrid: Rename logger to LOG and replace printStackTrace calls

Keep and maintain list of notifications pushed to device

Fossil Hybrid HR: Make autoremove notifications toggleable in device settings

Fossil Hybrid HR: Sync notification dismissals to watch

Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2219
Co-Authored-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
Co-Committed-By: Arjan Schrijver <arjan5@noreply.codeberg.org>
2021-03-08 14:29:08 +01:00
vanous
fdea7ed24d Add header-title to Activity detail 2021-03-08 09:59:14 +01:00
vanous
01e99d2809 Add chart to each item in Activity list 2021-03-07 19:42:14 +01:00
vanous
6aeb297aa5 Battery info - use Gb DBAccess 2021-03-05 09:05:01 +01:00
vanous
e848a7cb71 Add Activity list dashboard summary calculations
Accessible via FAB in Activity list
Adds DebugActivity checkbox to show large date range
2021-03-03 19:03:02 +01:00
vanous
47d211013c Remove description label from Battery chart 2021-02-27 11:05:16 +01:00
vanous
5758c9e564 Adds ongoing activity snackbar + preference 2021-02-27 10:51:58 +01:00
vanous
b8f42b6bee Separate some UI components into reusable widgets 2021-02-27 10:48:13 +01:00
vanous
a6de25918b Make Battery chart to use AbstractGBFragment with a bg thread 2021-02-27 10:31:43 +01:00
vanous
0a2920a5ec Battery Info: add styled date range UI 2021-02-14 18:33:32 +01:00
vanous
cde018399a add time span and select date 2021-02-13 23:28:16 +01:00
vanous
99830f5a84 flip and scale GPX canvas 2021-02-13 18:10:42 +01:00
Andreas Shimokawa
bf9b45f964 Charts: Also count steps for not worn samples
The Mi Band 5 also seems to display those steps
It could also be that the sample type is wrong in Gadgetbridge
2021-02-05 19:17:35 +01:00
vanous
3e04778696 initial battery level collector and simple chart 2021-02-04 21:21:38 +01:00
vanous
57fe621ba8 honor Imperial units settings in Widget, Activity list and Workouts, fixes #2041 2021-01-23 21:43:32 +01:00
vanous
0fd2de2bd3 show all eligeble devices in Widget Configuration Activity, fix #2170 2021-01-22 20:29:00 +01:00
vanous
198040c935 add UUID to to GPX with opentracks namespace
ensure that GPX has trackpoints
improve GPX track name if null
2021-01-17 00:07:55 +01:00
vanous
5c7254b7b8 adds a 'Delete files from export directory' to Data management 2021-01-10 23:39:38 +01:00
vanous
6f0245a23c Data(base) Management screen clarifications
- rename to Data management in menu and activity
- expand texts and explain files meaning
- add confirmation screen to export
- change layout to Linear, rather then Grid
- add listing of file content in the /files directory
- allow Data management activity to rotate

Add missing widget string to strings
2021-01-03 15:46:12 +01:00
TaaviE
09eb470b64 Renamed removeBroadcastReceivers to a more correct name 2020-12-28 22:03:41 +01:00
Toby Murray
ab306b1352 Add BlueTooth receivers in onResume
Pairing some devices requires a PIN to be entered. E.g. the flow is: confirm you'd like to pair, pass off to Android which prompts for a PIN to pair with (typically shows up on the non-phone device's screen or is hard coded in the manual), then return back to the app.

When this pairing request screen pops up, it takes focus. This invokes onPause and onStop in the DiscoveryActivity, which removes the BlueTooth broadcast receivers. Returning focus (after successful pairing), there's nothing to listen to the event. Practically speaking, GadgetBridge last saw the device as BOND_BONDING, so it's out of sync. If queried, the device is BOND_BONDED, so it's good to move on to the next step.

Many existing pairing activities (Lenovo, MiBand, Pebble, Watch9) have an implementation of onResume() to presumably tackle this issue, this adds it to `DiscoveryActivity` as well. Testing with some other supporting code, this allows a Garmin vivosport to appear in Gadgetbridge.
2020-12-28 22:03:41 +01:00
vanous
be53130dba ensure that correct device is used for activity launched from widget
remove code to trigger error, forgotten from testing
update changelog
2020-12-21 11:23:01 +01:00
vanous
502f689862 Rework the Daily Widget:
- make layout transparent rather then red, update the preview image
- move battery to top row to reduce size, add status indicators with icons
- add preference settings, to choose for which device this widget is
- data is no longer calculated for all devices but for a selected device
- add debug items to view and erase widget settings and registrations
  (debug items are intentionally not translatable yet)
2020-12-20 19:01:00 +01:00
xaos
68e7a5fea9 refined error message for invalid authentication key
Co-Authored-By: xaos <xaos@noreply.codeberg.org>
Co-Committed-By: xaos <xaos@noreply.codeberg.org>
2020-12-20 00:25:44 +01:00
andyboeh
02b85f4c11 Casio GBX-100: Add step count data and more device settings
Co-Authored-By: andyboeh <andyboeh@noreply.codeberg.org>
Co-Committed-By: andyboeh <andyboeh@noreply.codeberg.org>
2020-12-20 00:22:35 +01:00
Andreas Shimokawa
4fb79ac2b2 Huami: Add new option to disting to properly distinguish connected adverising and 3rd party hr exposure 2020-12-13 22:38:03 +01:00
vanous
98bb01dfa1 Make charts tabs selectable sortable 2020-11-28 23:42:30 +01:00
vanous
d180442b47 Allow to clear activity label. Select device for foreign sport activiry. 2020-11-26 23:21:50 +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
marco.altomonte
ac66885848 Fix main fab behavior 2020-11-14 12:21:38 +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
Andreas Shimokawa
8cb2fb980a Ímplement sorting menu items for newer Huami devices
- Amazfit GTR/GTS
- Amazfit Bip S
- Mi Band 5/Amazfit Band 5
2020-11-07 22:48:34 +01:00
Andreas Shimokawa
e1f2e0c830 Experiment with a draggable sort list.
I left the non-preference related dslv code untouched and took it from here

https://github.com/sbolotovms/drag-sort-listview
(This is one of many forks, which had migrated android to androidx)

The base for the code in DragSortListPreferenceFragment.java and
DragSortListPreference.java comes from:

https://github.com/kd7uiy/drag-sort-listview

I heavily modiefied it moved it to androidx
2020-11-07 22:48:34 +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
95c35deb90 Add version to About screen 2020-10-24 21:55:48 +02:00
vanous
4d42e169b9 Add GPS fragment to Sport Activity detail
add GPX parser
fix possible swiping issue after device rotation
use window background color for screenshots
2020-10-24 18:27:51 +02: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
Daniel Dakhno
7ecb5543f7 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-hybrid-new-firmware 2020-10-14 02:02:00 +02:00