1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-03 04:21:52 +02:00
Commit Graph

525 Commits

Author SHA1 Message Date
Andreas Shimokawa
58bbcb0035 Pebble: allow to configure reconnect attempts
This should help #89
2015-09-17 15:31:12 +02:00
Andreas Shimokawa
d8c096d931 Handle SMS/MMS as generic notification if disabled
(could serve as a workaround for #127)
2015-09-16 01:09:03 +02:00
Andreas Shimokawa
6e3c839608 Allow to select preferred music player in preferences, closes #112 2015-09-16 00:53:54 +02:00
Andreas Shimokawa
de74a033f6 Try to support controlling multiple music players
This tries to control the last player that played a (new) song.
It is very limited since we cannot get the source of an intent.
Instead we try to guess from the Action.
The problem is that we cannot support players that use only the action "com.android.music.XXXX" and not something own.
Also try to blindly support getting spotify metadata (for testing #112)
2015-09-15 01:36:33 +02:00
Julien Pivotto
21d59b23c1 Allow QKSMS notifications to be handled as a generic notification if SMS notification mode is set to "never"
This makes it possible to use the "Open on Phone" and individial dismiss feature with QKSMS.
2015-09-13 22:51:05 +02:00
Andreas Shimokawa
95e22a4e32 Pebble: Allow stopping apps though PebbleKit messages (also in the API) 2015-09-13 21:44:26 +02:00
Andreas Shimokawa
6fff4fb7ba Pebble: support byte arrays for Appmessages (including PebbleKit ones) 2015-09-13 18:37:59 +02:00
Andreas Shimokawa
9a32be97cb Pebble: work towards PebbleKit support #106
- Untested features have to be turned on.
- We will accept data from any source.
- One way, we do not send out replies.

This already works with the minimalistic sports demo from the sdk
2015-09-13 18:20:15 +02:00
Andreas Shimokawa
d3dbde6917 Some refactoring:
- Put Pebble icon ID constants in its own class
- remove ICON_ and COLOR_ prefixes from constants
2015-09-13 15:21:07 +02:00
Andreas Shimokawa
04086a3b4c Merge pull request #122 from roidelapluie/colors
Pebble: Support Colors in notifications
2015-09-13 14:58:05 +02:00
Julien Pivotto
1027336591 Pebble: Support colors in 3.x notifications (Pebble Time)
* Generic notifications are still red
* Colors are in a separated static class

Closes #120.
2015-09-13 14:54:43 +02:00
Julien Pivotto
eafb795874 Fix a small typo in gadgetbridge.model.ServiceCommand 2015-09-13 14:26:55 +02:00
Andreas Shimokawa
a73beceb44 Map a few more apps to NotificationKind 2015-09-13 13:48:21 +02:00
Andreas Shimokawa
4f80844016 noficicaion_kind -> notificationKind 2015-09-13 13:38:11 +02:00
Andreas Shimokawa
44d8294f8c Pebble: use Hipchat icon for chat notifications on FW 3.x 2015-09-13 13:32:18 +02:00
Andreas Shimokawa
a85c04c02a Pebble: use constant for icons where possible 2015-09-13 12:55:10 +02:00
Julien Pivotto
d50a82d495 Pebble: Set application icons for generic notifications
Closes #116.
2015-09-13 00:39:53 +02:00
Andreas Shimokawa
637539861d Merge pull request #115 from roidelapluie/notifications
Pebble: Use generic icon for generic notification instead of SMS icon on FW 3.x

This also adds a lot of constants for a bunch of icon IDs
2015-09-12 23:14:58 +02:00
Julien Pivotto
986e7e0450 Improve Pebble Time notifications icons
* Add a list of icons in the source code
* Generic notification now use the correct icon instead of the SMS icon
2015-09-12 22:14:36 +02:00
Andreas Shimokawa
914d1b9625 Make notification blacklist actually working 2015-09-12 00:19:36 +02:00
Andreas Shimokawa
03b9f02b2c Pebble: allow launching internal Golf and Sports App if untested features are enabled
This is completely useless for now, but since it is there on every Pebble, I want to be able to launch it.
2015-09-10 23:07:42 +02:00
Andreas Shimokawa
0ad758fbca WIP blacklist activity (currently does nothing except listing apps) 2015-09-10 13:48:54 +02:00
cpfeiffer
80d15573af Avoid tiny window where a gatt callback of an operation could be unset 2015-09-10 00:00:52 +02:00
cpfeiffer
c23905070c Some more logging improvelets 2015-09-09 23:39:57 +02:00
cpfeiffer
22a9ff1819 Log when no listener is registered for a characteristic change 2015-09-09 23:23:38 +02:00
cpfeiffer
e80a3cc591 Log the number of samples being flushed #91 2015-09-09 22:33:06 +02:00
cpfeiffer
e0ccb6bf84 Log the date/time that we sync to the Mi Band #91 2015-09-09 21:53:28 +02:00
cpfeiffer
d9d222ca9b Tiny logging improvement 2015-09-09 21:15:29 +02:00
cpfeiffer
bddf6c8909 Also log the number of rows (samples) returned by the query #91 2015-09-09 20:52:04 +02:00
cpfeiffer
2dec5574cc Log the where condition of the samples query #91 2015-09-09 20:49:17 +02:00
cpfeiffer
e34c5614d7 Bail out hard if we get negative steps from the database #91
We don't add them to the db for sure.
2015-09-09 20:46:50 +02:00
Andreas Shimokawa
7f331a1bb1 Pebble: play around with timeline pins 2015-09-08 14:15:46 +02:00
Daniele Gobbetti
6c28b50f52 allow the transfer of activity data without clearing MiBand's memory 2015-09-07 12:06:56 +02:00
cpfeiffer
fbd23c2d4c Some layout improvements (#30) 2015-09-06 00:03:56 +02:00
Andreas Shimokawa
02cc8ba455 Allow K9 Mail notifications to be handled as a generic notification if K9 Mail notification mode is set to "never"
This makes it possible to use the "Open on Phone" and individial dismiss feature with K9 Mail.
2015-09-05 21:32:46 +02:00
Andreas Shimokawa
a839f07496 Pebble: use proper icon for "Open on Phone" on Pebble Time 2015-09-05 21:00:18 +02:00
Andreas Shimokawa
1a1277fa3d Pebble: Fix "Open on Phone" on OG Pebble (no more error display) 2015-09-05 20:40:12 +02:00
cpfeiffer
69b64ed4b6 More logging for time/timezone changes
(trying to find an explanation for #91)
2015-09-05 00:14:09 +02:00
cpfeiffer
05ee6e46c6 Display battery label in RED when battery is LOW #40 2015-09-02 23:49:48 +02:00
Andreas Shimokawa
e4a72a83ee Ignore QKSMS generic noticfication to prevent duplicate SMS notifications
Closes #108
2015-09-02 22:54:20 +02:00
Andreas Shimokawa
ab29736a50 Pebble: Implement "Open on Phone" function for generic notifications
TODO:
- search a better icon for the Pebble Time
- send a reply to the OG Pebble to prevent the error message from popping up
2015-09-02 22:43:22 +02:00
cpfeiffer
536b2bd8a0 Another translatable string 2015-09-01 23:56:14 +02:00
cpfeiffer
da5df5621e Use MEDIUMINT for steps per day (no effect, not used, and ignored by sqlite) 2015-09-01 23:11:22 +02:00
cpfeiffer
4b4c6d1a6b Do not accept negative step/intensity values in the db
(Ignore and log those requests instead)
2015-09-01 22:53:47 +02:00
cpfeiffer
c5db816cd1 Pass shorts along to avoid implicit signed conversion. 2015-09-01 22:53:20 +02:00
cpfeiffer
c49c795b1d Actually remove that implicit "current date" handling
We now manage days explicitly in the UI.
2015-09-01 22:43:31 +02:00
cpfeiffer
d791054e42 Fix getLast24Hours() -- take end time into account 2015-09-01 22:37:20 +02:00
cpfeiffer
a6d18e599b Tiny simplification and extract string 2015-09-01 22:34:04 +02:00
cpfeiffer
917801f223 Use the correct date for displaying steps #91 2015-09-01 22:13:30 +02:00
Andreas Shimokawa
fd789c445e Allow dismissal of individual (generic) notification
Implemented for Pebble and Pebble Time #103
2015-09-01 22:00:11 +02:00