1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-11 00:12:29 +02:00
Commit Graph

1189 Commits

Author SHA1 Message Date
cpfeiffer
5e02724c4c Make automatic reconnect after connection loss configurable #293
Mi Band: automatically reconnect when the device is back in range

Also: #89
2016-04-28 23:17:13 +02:00
cpfeiffer
eca5d40efe More javadoc 2016-04-26 00:02:35 +02:00
Andreas Shimokawa
e1551226f6 Reject empty strings in Preferences for numeric inputs 2016-04-25 23:51:58 +02:00
cpfeiffer
47984dba0a javadoc 2016-04-25 23:45:27 +02:00
cpfeiffer
e35ce978bd Remove now unused imports + fix one more SharedPreferences usage 2016-04-25 23:43:19 +02:00
cpfeiffer
0704915a88 Move parsing of preference strings to int values to Prefs 2016-04-25 23:39:03 +02:00
cpfeiffer
0c715a2669 Wrap access to SharedPreferences with "Prefs"
(to centralize quirk handling)
2016-04-25 23:18:55 +02:00
cpfeiffer
b89eb14be7 allow two digits for number of call notifications (e.g. 60) 2016-04-25 00:13:09 +02:00
cpfeiffer
65bd1581bc Fix receivers, display measured heart rate as a toast again, fixes #292 2016-04-24 18:17:04 +02:00
Andreas Shimokawa
36a34bd17c fix remaining strings saying "App Mananger". Closes #290
(I fixed on transifex where possible, unfortunately some strings vanish there from time to time, I guess it is the case when the english string changes)
2016-04-24 11:37:18 +02:00
Andreas Shimokawa
abe1c9070f update German and Korean from transifex, thanks! 2016-04-24 11:32:09 +02:00
Andreas Shimokawa
18fe09bb7c make add icon on FAB white 2016-04-23 23:31:19 +02:00
Andreas Shimokawa
3fefb57fdd Fix colors in alarm activity for dark theme 2016-04-23 23:24:56 +02:00
cpfeiffer
d5639a0520 Updated translations from transifex (thanks!) 2016-04-21 23:32:49 +02:00
cpfeiffer
c573f989d0 Prepare for 0.9.5 2016-04-21 23:13:06 +02:00
cpfeiffer
0427294227 Dynamically enable/disable logging #288 2016-04-18 00:20:40 +02:00
cpfeiffer
98d7237ec3 Display a different notification icon, when disconnected
Better icons welcome :-)
2016-04-15 22:57:13 +02:00
cpfeiffer
e451e8155c Remember the map so that we can look up the name later, as well, closes #275 2016-04-14 23:55:40 +02:00
cpfeiffer
a460049a1b Sort by label and blacklist status, hopefully fast enough #275 2016-04-14 23:23:06 +02:00
Andreas Shimokawa
a9e7cdcaa7 use some colors from the theme for charts activity 2016-04-14 17:41:04 +02:00
Andreas Shimokawa
a9b75a63b3 simply derive AbstractGBFragmentActivity from GBActivity instead of FragmentActivity
This fixes the Actionbar being invisible
2016-04-14 17:16:43 +02:00
Andreas Shimokawa
46086f0408 allow dark theme in charts activity.
The charts however are still the same
2016-04-14 17:04:49 +02:00
Andreas Shimokawa
faa6a9d906 use android:summary="%s" for ListPreferences 2016-04-14 16:44:44 +02:00
Andreas Shimokawa
f76a1ba16f allow to switch to dark theme im settings 2016-04-14 16:15:58 +02:00
Andreas Shimokawa
367aced03d also use theme in settings 2016-04-14 15:34:53 +02:00
Andreas Shimokawa
4bcebca744 Work towards dark theme, remove -v21 specific theme definition 2016-04-14 15:21:25 +02:00
Andreas Shimokawa
a9b4ea8eda bump buildToolsVersion 2016-04-14 15:17:08 +02:00
Andreas Shimokawa
24cc3725d2 equalize size of connected and disconnected device icons 2016-04-14 11:07:44 +02:00
cpfeiffer
b25a47c398 Immediately disable hr reading and activity tracking when leaving the tab #273 2016-04-13 23:36:14 +02:00
cpfeiffer
e87a357bed Show separate curves when the time between two measurements is too long #273 2016-04-13 21:38:35 +02:00
cpfeiffer
f52126ed36 Update dependencies 2016-04-13 21:21:25 +02:00
cpfeiffer
ae5d9089d8 Slight improvement to hr charts #178 2016-04-13 21:21:10 +02:00
cpfeiffer
78bf516897 Disabling sleep measurement for continuous measurement is not necessary
Looks like they don't interfere, after all. #178
2016-04-12 23:25:12 +02:00
cpfeiffer
f15a97d994 Initial live heartrate measurement in the live activity tab #178 2016-04-12 23:12:50 +02:00
Andreas Shimokawa
58d90c2a66 remove obsolete Holo theming 2016-04-12 13:04:28 +02:00
cpfeiffer
7ab31514dc Rework charts to completely fix crash in charts activity #277 2016-04-11 23:18:12 +02:00
cpfeiffer
290d695fec Add margin for the shadow of the FAB
Also make the hint color grey, like in the discovery activity
2016-04-10 21:36:32 +02:00
Lem Dulfo
39cba84ab1 Apply gray images on non-connected devices in the list. 2016-04-10 21:11:52 +02:00
Lem Dulfo
e5726075a4 Rework device item layout 2016-04-10 21:11:52 +02:00
Lem Dulfo
eba1ee6dc6 Device disabled icons 2016-04-10 21:11:52 +02:00
Lem Dulfo
70ed14243f Remove all getActionBar occurences, temporary fix for overlap 2016-04-10 21:11:52 +02:00
Lem Dulfo
83e6e6b85f Add background image for empty ControlCenter 2016-04-10 21:11:41 +02:00
Lem Dulfo
80a21f2ec2 Move Discovery functionality to FAB 2016-04-10 21:11:41 +02:00
Lem Dulfo
5a3004cbce AppCompat and FAB, more Material Design 2016-04-10 21:11:41 +02:00
Lem Dulfo
3ef942b5d3 Do not crash on null BT adapter, allows UI work on emulator. 2016-04-10 21:11:41 +02:00
cpfeiffer
57ecba16f3 Update Changelog for 0.9.4 2016-04-09 10:05:27 +02:00
cpfeiffer
802e9a8235 OK, revert to connectGatt(false), connect often does not work with true #249 2016-04-09 09:53:03 +02:00
cpfeiffer
42dda911e4 Fix crash in charts activity, closes #277 2016-04-08 23:02:50 +02:00
cpfeiffer
1e5dbb6a23 OK, just connect(true) is not sufficient #249
(we again get connection problems. Let's try this.)
2016-04-07 20:53:25 +02:00
Daniele Gobbetti
a49335fa67 Allow to change stored samples converting only certain old types 2016-04-07 17:52:15 +02:00
Andreas Shimokawa
b1a93c430d interrupt thread instead of joining to fix ANR 2016-04-07 00:21:21 +02:00
Andreas Shimokawa
6895c5b776 fix xml changelog 2016-04-06 23:29:59 +02:00
Andreas Shimokawa
c7b64b6da7 update Japanese translation from transifex (thanks!) 2016-04-06 23:03:56 +02:00
Andreas Shimokawa
e91b5a07bd Pebble: change delay between reconects to 1,2,4,8,16,32,64 (max) seconds 2016-04-06 22:55:04 +02:00
Andreas Shimokawa
4055cc1173 bump version 2016-04-06 22:44:50 +02:00
Andreas Shimokawa
94cec55a20 Merge pull request #276 from roidelapluie/reconnect
Pebble: Smarter reconnection attempts
2016-04-06 22:41:07 +02:00
danielegobbetti
d2af3468f0 Add support for new datalog message added in pebble firmware 3.11
This adds support for storing deep sleep data.
2016-04-06 21:48:16 +02:00
Julien Pivotto
e42a041448 Pebble: Smarter reconnection attempts
Sleep several seconds between reconnection attempts:
One second after first attempt, two after the second, and so on.

refs #89
2016-04-06 12:37:23 +02:00
Daniele Gobbetti
51def0d497 Add light intensity to the known steps datalog message.
Add support for record version 6 introduced with firmware 3.11.
There are more data in each record now, but we still do not know what they mean.
Close #270
2016-04-04 23:33:17 +02:00
Daniele Gobbetti
34600e085e Fix wrong assignment, needed to properly deal with datalog messages longer than 255 2016-04-04 23:13:57 +02:00
cpfeiffer
403f74e59b Enable heart rate charts #232
(And fix some charting issues)
2016-04-04 23:05:20 +02:00
Andreas Shimokawa
a15b327ff1 Refactoring: get rid of ServiceCommand, use new CallSpec and MusicSpec to pass Call and Music info 2016-04-04 20:08:34 +02:00
cpfeiffer
3e3cf462a6 Attempt to re-enable automatic reconnect (autosensing) #249
(now that initializing device works again)
2016-04-03 23:32:15 +02:00
cpfeiffer
59c3970008 Reuse characteristic objects #234 2016-04-03 23:01:58 +02:00
cpfeiffer
b129844169 Small fixes to PR 273 #232
- dynamically toggle hr sleep support when preference changes
- check hr support dynaically after device info is available to avoid false error message
2016-04-03 22:38:06 +02:00
cpfeiffer
7cda9f1923 Merge branch 'computerlyrik-heartrate-sleep-support' 2016-04-03 21:46:29 +02:00
cpfeiffer
804a85d31f Small refactoring of BtLE actions 2016-04-03 21:46:24 +02:00
cpfeiffer
b54fe53cd5 Merge branch 'heartrate-sleep-support' of https://github.com/computerlyrik/Gadgetbridge into computerlyrik-heartrate-sleep-support 2016-04-03 21:02:45 +02:00
Andreas Shimokawa
4389c1cca3 Pebble: wait 4 seconds instead of 2 when notifications/calls trigger reconnection 2016-04-03 18:36:30 +02:00
Andreas Shimokawa
7ddfd35c35 Pebble: auto connect on incoming notification or phone call if connection was lost unxpectedly before 2016-04-03 18:30:20 +02:00
cpfeiffer
a4919789ca Add some progress to firmware updating #271 #234
Also: remove the low latency mode for firmware update,
because my Mi1S simply disconnects then.

Still missing in the view: device disconnects
2016-04-03 00:50:45 +02:00
cpfeiffer
7a224243a3 Try to quit Gadgetbridge by stopping the service 2016-04-03 00:49:54 +02:00
cpfeiffer
2d10c11005 Log the length of the bytes written 2016-04-02 22:35:37 +02:00
cpfeiffer
0e49535966 Fix progress during fw update #234 2016-04-02 22:24:33 +02:00
Christian Fischer
f2de21a664 test if heartrate is supported before writing preferences 2016-04-02 16:11:51 +02:00
Christian Fischer
20aa7d9ad9 add preference to set hartrate sleep detection 2016-04-02 16:09:30 +02:00
Christian Fischer
72258c178c fix in string represantation conversion 2016-04-02 16:08:36 +02:00
cpfeiffer
ea5c6a0848 Log ignored notifications when updateCoordinator is null 2016-03-31 21:57:36 +02:00
cpfeiffer
6f97b8c1e5 Log the date that we receive from the Mi Band 2016-03-31 21:54:09 +02:00
cpfeiffer
66c1b3f178 Relax check for Mi1S device detection #234 2016-03-31 21:39:51 +02:00
cpfeiffer
4631df67ac Some more logging + add svg launcher again (somehow it was not added again) 2016-03-30 22:53:08 +02:00
cpfeiffer
776a743285 Move svg file to another place to fix build 2016-03-30 22:06:03 +02:00
cpfeiffer
ffc006c21c Fix ordering problem with firmwareInfoSent state variable #234 2016-03-30 21:56:00 +02:00
cpfeiffer
cc7f5406ef Use low latency transfer mode for fw update #234 2016-03-30 21:48:42 +02:00
cpfeiffer
5f72daa43a Add SVG launcher icon, closes #190 THANKS! 2016-03-29 22:59:22 +02:00
cpfeiffer
f8c761068e Updated for 0.9.3 2016-03-29 22:45:46 +02:00
cpfeiffer
e931cf47d7 Need to pass '0' as parameter to mi band fw metadata info #234 2016-03-29 22:15:14 +02:00
Andreas Shimokawa
b3590fed35 For simplicity hide some internal states from the user
Display connecting->connected instead of connecting->connected->initializing->initialized
2016-03-28 23:56:20 +02:00
Andreas Shimokawa
cbc57b4407 Pebble: Fix stupid bug that made Pebble Health unavailable in App Manager (Fixes #269) 2016-03-28 23:46:05 +02:00
cpfeiffer
8815f0d134 Small cleanups and fixlets. 2016-03-28 23:02:22 +02:00
Andreas Shimokawa
6ce63276a3 play around with play states, simplify weired nested switch 2016-03-27 19:50:32 +02:00
Andreas Shimokawa
adfef3db42 Prepare code for more music metadata (duration, track count, current track number)
Oh and format code
2016-03-27 17:45:44 +02:00
cpfeiffer
bfcfe82f17 Improve pairing activity: #254
- add hint about rebooting phone
- request enabling bluetooth
2016-03-26 20:46:48 +01:00
Andreas Shimokawa
9d29e4db3f bump version, update xml changelog 2016-03-26 10:04:02 +01:00
cpfeiffer
a70c31f965 Add commandline for running all firmware tests 2016-03-26 00:10:32 +01:00
cpfeiffer
bff5837930 Sort device infos 2016-03-25 23:54:42 +01:00
cpfeiffer
8165751e57 Refactoring to test the double firmware update procedure #234
(while performing the same, known to be working firmware update for Mi1A)

Result: double firmware update procedure works on Mi1A.

Also updated FirmwareTest. Perform all tests not only in the test itself,
but also at runtime before doing the actual update.

Further:
- fix setting of firmwareInfoSent state variable, which prevented installation
  of the section firmware
- make one string translatable
2016-03-25 23:45:27 +01:00
Andreas Shimokawa
a208907ba7 update Japanese from transifex (thanks!) 2016-03-25 23:09:25 +01:00
Andreas Shimokawa
98949f3b54 bump version update xml changelog 2016-03-25 11:29:50 +01:00
cpfeiffer
3714ec82da Extracted String "HR: ", (= Heart Rate Firmware Version) 2016-03-24 22:23:16 +01:00