João Paulo Barraca
845869e25e
HPlus: Fix intensity calculation without continuous connectivity
2017-05-19 10:39:21 +01:00
cpfeiffer
1d79c9d93d
Dark theme: set some text colors for the speed zone tab
2017-05-18 23:26:04 +02:00
cpfeiffer
07f4d3148a
Also reset the last package counter when doing a second round
...
See #691
2017-05-15 23:11:52 +02:00
Andreas Shimokawa
b1d1e701f9
Pebble: map walk and run to TYPE_ACTIVITY instead of UNKNOWN
...
fixes speed zones chart being empty for pebble health
2017-05-15 22:30:07 +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
cpfeiffer
e4faabeca3
Fix NPE
...
Closes #691
2017-05-15 19:34:33 +02:00
cpfeiffer
0e4b9a4eb8
Mi2: Keep fetch activity data until data is from today
...
When the fetch operation finishes successfully, double check if
the last received data is from today. If it is older, fetch again.
Closes #611
2017-05-15 00:38:26 +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
Andreas Shimokawa
b31a6a5db9
Pebble: Fix wrong timestamps with Morpheuz running on Firmware >=3
...
Fixes #689
2017-05-13 22:18:56 +02:00
Andreas Shimokawa
a1690700f4
Revert "Refactor notification management"
...
This reverts commit cede8a0826
.
2017-05-10 22:26:02 +02:00
Andreas Shimokawa
4591f07bcd
Revert "Parse the EXTRA_MESSAGE bundle in the notification, if present."
...
This reverts commit bc28990a96
.
2017-05-10 22:25:46 +02:00
Andreas Shimokawa
bbbb9dd448
Pebble: do not start calendar event listener at all when calendar access is denied
...
Fixes #678
2017-05-09 12:32:00 +02:00
Andreas Shimokawa
805a38ae3c
Merge branch 'notification-refactor'
2017-05-08 22:22:34 +02:00
João Paulo Barraca
d73d4b3a13
HPlus: Handles missing phone number. Fixes #675
2017-05-05 22:17:52 +01:00
Andreas Shimokawa
9f309df84d
Calendar sync: Use instance id instead of event it to fix recurring events
...
Also parse duration string if no end time was set
If this breaks anything, revert
2017-05-04 21:52:54 +02:00
João Paulo Barraca
8a39d8b2eb
HPlus: Detect Zeband Plus Unicode Support
2017-05-04 14:16:21 +01:00
João Paulo Barraca
497f9a6658
HPlus: Handle SW Version message from Zeband Plus
2017-05-04 13:47:32 +01:00
Andreas Shimokawa
b475fd2dc7
Just disconnect if bluetooth gets turned off, do not quit all activities.
2017-05-01 17:33:34 +02:00
Daniele Gobbetti
bc28990a96
Parse the EXTRA_MESSAGE bundle in the notification, if present.
...
This way notifications are updating for the Conversations app.
2017-04-29 23:22:03 +02:00
Daniele Gobbetti
ccfe8d5777
Merge branch 'master' into notification-refactor
2017-04-29 21:34:19 +02:00
Daniele Gobbetti
cede8a0826
Refactor notification management
...
- centralize the logic for skipping over unwanted notifications
- use *Compat methods wherever possible
- use unique and persistent ID (update notifications)
- switch to using BigText style by default (since we can now update existing notifications)
- for Pebble: delete and reinsert notification as updating is not possible
2017-04-28 18:03:19 +02:00
cpfeiffer
07c61e6bcb
Revert "Revert "Enable notifications during testcases to avoid NPE starting the service""
...
This reverts commit 6627371f92
.
2017-04-27 08:03:48 +02:00
cpfeiffer
c3c5e0415d
The Real Fix #666
2017-04-27 07:57:57 +02:00
cpfeiffer
f1fbab7dd9
Revert "Revert "Adjust test case setup and fix failing tests""
...
This reverts commit b0384e90d5
.
2017-04-27 07:57:57 +02:00
Andreas Shimokawa
b0384e90d5
Revert "Adjust test case setup and fix failing tests"
...
This reverts commit d9b0d639b8
.
2017-04-27 07:39:36 +02:00
Andreas Shimokawa
6627371f92
Revert "Enable notifications during testcases to avoid NPE starting the service"
...
This reverts commit 739b5e9c50
.
Might fix #666
2017-04-27 07:37:32 +02:00
João Paulo Barraca
69d215cb99
HPlus: Improve intensity calculation based on Tanaka et al, 2001
2017-04-27 00:58:36 +01:00
João Paulo Barraca
166695f00a
HPlus: Handle more frame types
2017-04-27 00:24:03 +01:00
João Paulo Barraca
c9da7548ed
HPlus: Improve reconnection to device
2017-04-27 00:24:03 +01:00
João Paulo Barraca
58cb73a756
HPlus: Improve transliteration
2017-04-27 00:24:03 +01:00
License Bot
8af9054f2d
Update license headers
2017-04-26 00:14:25 +02:00
cpfeiffer
739b5e9c50
Enable notifications during testcases to avoid NPE starting the service
2017-04-25 22:51:56 +02:00
cpfeiffer
d9b0d639b8
Adjust test case setup and fix failing tests
...
- add missing call super.setUp() in LoggingTest
- make use ofGBApplication's logger and db support instead
of adding specific test things. Avoids differences between
the local test things and the global GBApplication instances.
2017-04-25 21:55:06 +02:00
Daniele Gobbetti
534eb385f7
Pebble: manage the dictation session initialization.
...
Currently we inform the watch that GadgetBridge doesn't support voice input.
2017-04-24 21:32:51 +02:00
Daniele Gobbetti
fae116d1bd
Add Calendar related tests (WIP)
2017-04-24 13:50:53 +02:00
Andreas Shimokawa
bc4503c8bf
Pebble: Add option for Calender Timeline sync (default on)
2017-04-24 12:39:40 +02:00
cpfeiffer
523055189f
Some basics for testing the calendar functionality
2017-04-24 11:58:07 +02:00
Daniele Gobbetti
d570d188a2
Remove the low battery notification if a normal battery level is reported.
2017-04-24 09:53:48 +02:00
cpfeiffer
ed02a9781a
Fix a cursor not being closed
...
Still won't be the cause for #655
2017-04-23 12:45:02 +02:00
Daniele Gobbetti
f06298a3c8
Fix some lint errors and warnings:
...
- check the calling Intent action when autostarting
- replace the FAB + image with a vector drawable
2017-04-23 12:43:13 +02:00
cpfeiffer
9ed8004a69
Fix rare NPE
2017-04-22 23:56:04 +02:00
cpfeiffer
3f8620e026
Use toString() instead of risking a ClassCastException
2017-04-22 21:16:40 +02:00
cpfeiffer
2003d56190
Cleanup package blacklist handling
...
Didn't find a cause for #664 , though.
2017-04-22 16:59:55 +02:00
cpfeiffer
36c1b5a6f2
Fix static context leak
...
I don't think this is the cause for #655 , but it supposedly also breaks
instant run, so now it's fixed.
2017-04-21 22:34:47 +02:00
cpfeiffer
1e4351b03a
Silence lint warning
2017-04-21 22:23:50 +02:00
João Paulo Barraca
70663af35a
HPlus: Support reconnection when messages are to be sent.
2017-04-21 19:09:48 +01:00
Andreas Shimokawa
6dc1d76592
Pebble: recognize AOSP calendar and use calendar icon on pebble for reminders
2017-04-21 12:39:18 +02:00
Andreas Shimokawa
965ba190a6
Calendar Sync: Fix location not being passed to device code
...
Now location is displayed on the pebble ;)
2017-04-21 10:51:06 +02:00
cpfeiffer
696dc1f08d
Attempt to fix reconnection not happening in some cases
...
Fixes #530
2017-04-20 23:01:32 +02:00
Andreas Shimokawa
bc368a788b
Pebble: fix protocol encoding bugs of timeline pin, add location
2017-04-20 21:40:06 +02:00
Andreas Shimokawa
8385d8079a
Pebble: allow encodeTimeLinePin() to encode other attributes than just title and subtitle
...
Unfortunately I did'nt find a way yet to add a description to the calendar pin (layout 2)
2017-04-20 20:09:29 +02:00
Andreas Shimokawa
15fb71337b
Calendar Sync: Fix inverted logic when comparing hashes from db
...
Also improve debug output
2017-04-20 20:08:16 +02:00
Andreas Shimokawa
5717379aec
Pebble: change timeline layout to "calendar" for calendaar events and display end time
2017-04-20 10:40:28 +02:00
Andreas Shimokawa
7ee20348db
Only sync Calendar and Sunrise/Sunset on devices that support it
2017-04-19 21:51:23 +02:00
Andreas Shimokawa
a28d27839f
Merge branch 'master' into feature-calendarsync
2017-04-19 20:19:15 +02:00
Daniele Gobbetti
3ef5f5b811
Add support for all day events and add location in the CalendarEventSpec
...
Further: fix the hashCode method to properly deal nulls fields.
2017-04-19 17:44:02 +02:00
Andreas Shimokawa
546b68ad2d
Calendar Sync: detect changed events by hash code
2017-04-19 14:52:07 +02:00
Daniele Gobbetti
18157daf46
Ensure that the Notification listener service gets restarted if crashed.
...
This change adds an additional service that checks the status of the NotificationListenerService, and restarts it if it's stale/crashed.
Crashes happen mostly during development, but were reported also by users.
2017-04-19 13:23:13 +02:00
João Paulo Barraca
9decb7788b
HPlus: use HR translated string
2017-04-18 10:51:49 +01:00
João Paulo Barraca
9f0d260e7a
HPlus: Improve connection process ( #651 )
...
* Clean HPlus services and characteristics
* Improve connectivity
2017-04-18 10:47:28 +01:00
cpfeiffer
b142add631
Pass a GBDevice instead of GBDeviceCandidate to getBondingStyle() #651
2017-04-17 23:00:16 +02:00
Andreas Shimokawa
087f5879b0
Merge branch 'feature-calendarsync' of https://github.com/Freeyourgadget/Gadgetbridge into feature-calendarsync
2017-04-17 21:11:17 +02:00
Andreas Shimokawa
35efa30c4b
Calendar Sync: Only enable calendar broadcast receiver when device is initialized
...
This excludes it from any auto connect logic.
We are now save to sync the calendar once in contructor.
2017-04-17 21:09:29 +02:00
Daniele Gobbetti
7b50ba9572
Implement hashCode() as equals has been implemented.
2017-04-17 21:07:50 +02:00
Daniele Gobbetti
1e231e6129
Move the Calendar receiver code in the proper place.
2017-04-17 20:33:39 +02:00
Daniele Gobbetti
61690eb2cc
Get notified when calendar events change instead of polling.
2017-04-17 20:26:33 +02:00
Andreas Shimokawa
df0e77f368
Calendar Sync: Make greendao .update() work by adding a PK id :/
2017-04-16 21:08:49 +02:00
Andreas Shimokawa
f7ca1fc76c
Merge branch 'master' into feature-calendarsync
2017-04-16 19:59:23 +02:00
Andreas Shimokawa
67f035accf
DBHelper: no not update device attributes in db if we call getDevice() on a disconnected device
...
Fixes NPE
2017-04-16 19:43:53 +02:00
Andreas Shimokawa
9970f8017f
Calendar sync: save sync status to db to avoid leakage of deleted events
...
We now have a per device database that tracks sync states for calendar entries
We still cannot track changed calendar entries that where changed while we were disconnected
2017-04-16 19:37:43 +02:00
Daniel Hauck
ccb58f0f3c
Basic calendar sync using additional receiver ( #654 )
2017-04-16 12:34:37 +02:00
cpfeiffer
16af0724dd
Replace method pair() with connectFirstTime()
...
Should help with #642 for hplus which did not implement pair()
2017-04-12 21:35:40 +02:00
cpfeiffer
589945f234
Use try-with-resources to ensure stream is closed on exception
2017-04-12 21:34:48 +02:00
João Paulo Barraca
6ed40a21c6
HPlus: convert text to either GB2312 or UTF-8
2017-04-12 14:29:24 +01:00
Andreas Shimokawa
810ba5419b
Pebble: reenable battery level reporting, with percentage drom datalog
2017-04-09 17:05:09 +02:00
Daniele Gobbetti
5bf6251dc5
Rename some layout files as they are used for specific purposes
2017-04-09 16:03:07 +02:00
Daniele Gobbetti
fe626eb11e
Remove the checkboxes in the alarms cardview and simplify layout of details activity
...
- rename the layout file of the alarm item to better organize the files
- add a color selector for the item view, this replicates the old behavior of using the color to highlight enabled days
- remove the nested linearlayouts in the alarm details activity layout and use CheckedTextView instead
2017-04-09 16:01:48 +02:00
cpfeiffer
1a88858c6f
Fix some findbugs findings
2017-04-09 01:09:43 +02:00
Daniele Gobbetti
a77ff03ca5
Add filter functionality to the app blacklist activity
2017-04-09 00:21:43 +02:00
Andreas Shimokawa
f658059d20
Pebble: really disable battery reporting
2017-04-08 23:19:07 +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
48728cbb50
Implement recyclerView in the AppBlackListActivity.
...
This allows to implement a search functionality (in the future)
2017-04-08 22:26:12 +02:00
Daniele Gobbetti
16cff936d3
Pebble: do not show the battery state in the control center
...
- the mapping voltage<->percentage is probably family dependent (or perhaps even device dependent!)
- the values are often outdated by more than one hour, this could yield to issue reports which are false positive
2017-04-08 18:46:39 +02:00
Daniele Gobbetti
018c2a971e
Show the list of alarms as (material design) cards
2017-04-08 18:44:15 +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
2e98b1396f
Do not override the android:* text colors, define our own. This fixes a crash on API 19.
...
Also define them in the attrs xml file and do some grouping in the colors xml.
It might be we don't need them at all, but for the time being let's keep them around.
2017-04-08 15:49:00 +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
cpfeiffer
202ae53d71
Ensure that a newly discovered and initialized device will be displayed
...
Fixed a race condition between ACTION_DEVICE_CHANGED event handlers:
- DeviceCommunicationService added the device to the database
- DeviceManager notified the views to be refreshed
When the latter happened before the former, thew new device would not
be displayed.
=> Let DeviceManager do both.
2017-04-07 21:17:37 +02:00
cpfeiffer
e1797fc9f7
When connecting for the first time, set "pair" to true
2017-04-07 00:40:33 +02:00
cpfeiffer
26ff7d67e3
Remove some now useless code
2017-04-07 00:11:25 +02:00
cpfeiffer
d2053b32bf
Small cleanup
2017-04-06 23:58:50 +02:00
Alberto
f3edf7559d
HPlus: added low battery information ( #638 )
...
HPlus: Notification of low battery
I added the notification of low battery HPlus ... specifically, I used
the HPlusConstants.DATA_STATS event on hplusSupport
I also included the status of the device in the list of
gbdevice -> getDeviceInfos
2017-04-06 23:55:29 +02:00
cpfeiffer
5b8624de71
Make pairing optional after discovery
...
See #642 which might be fixed by not pairing.
2017-04-06 23:47:35 +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
Alberto
45eb14684b
import export SharedPreferences ( #600 )
...
Import and export SharedPreferences
i add function for import and export SharedPreferences setting
when export or import db execute export or import SharedPreferences
for blacklist i preload HashSet
2017-04-05 00:16:17 +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