1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00
Commit Graph

479 Commits

Author SHA1 Message Date
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
cpfeiffer
5c2bd1e8df Avoid code duplication by reusing logMessageContent() 2015-09-01 21:26:51 +02:00
Andreas Shimokawa
46171e4ab8 Some preparations for interactive notifications 2015-08-31 22:27:25 +02:00
Andreas Shimokawa
2da717ea4c set visibility of service notification to public again 2015-08-31 21:29:00 +02:00
Daniele Gobbetti
ee3ca5998e Fail early when opening a pebble file.
Fixes #102

We could also use a whitelist approach instead, but we can't be sure that the user installs a file with .fw extension, hence i preferred to only avoid loading files which are known to be of the wrong type.
2015-08-31 17:41:09 +02:00
Daniele Gobbetti
9360b81ef3 Don't add new limitlines, clean the existing one before (it could be optimized further by reusing the existing one, probably) 2015-08-31 17:41:09 +02:00
Daniele Gobbetti
249ff5bf94 Let the user change date also on the Week steps chart 2015-08-31 17:41:09 +02:00
Andreas Shimokawa
face7cceea probable close #104 2015-08-31 17:31:32 +02:00
Andreas Shimokawa
95b65265b4 remove eventClass field from GBDeviceEvent, use instanceof instead 2015-08-31 17:25:58 +02:00
cpfeiffer
50960277dd Localized some firmware update texts and added some toasts on finish 2015-08-30 21:56:45 +02:00
cpfeiffer
41d8bcf634 Make firmware and app installation a bit more user friendly #30 2015-08-30 00:21:51 +02:00
cpfeiffer
530116976c Only call super.onCharacteristicChanged() when not handling it here 2015-08-29 20:48:33 +02:00
cpfeiffer
25ddc20f89 Fix testcases with sdk 23: don't call Notificaton API during local tests 2015-08-29 20:39:34 +02:00
Andreas Shimokawa
13300fcb5d finally fix build with SDK 23 2015-08-29 11:31:48 +02:00
Daniele Gobbetti
26792717d4 Add showing when the device wasn't worn by the user 2015-08-28 14:58:30 +02:00
Daniele Gobbetti
fb5ebeacb6 Light colors for the graphs.
Closes #99
2015-08-28 14:58:30 +02:00
cpfeiffer
086bb8aa4a Also parcel the battery level threshold 2015-08-28 13:53:16 +02:00
cpfeiffer
ff989390f9 Fix the remaining TODO #101 2015-08-28 13:49:36 +02:00
Daniele Gobbetti
2f1aa45445 Merge remote-tracking branch 'origin/master' into low_battery_notification 2015-08-28 10:40:46 +02:00
Daniele Gobbetti
cbea0feb9e Centralize the calendar conversion to/from byte array take 2.
Move to an independent class.
2015-08-28 10:40:25 +02:00
Andreas Shimokawa
2ca8e149ee Pebble: support "dismiss all" action also on Pebble Time/FW 3.x notifications
This is done through a workaround, now we just label it as a generic action and reply properly to the invocation from the Pebble.
Fixes #86
2015-08-27 18:01:19 +02:00
Andreas Shimokawa
44c7f99c58 GBDeviceProtocol::decodeResponse() now returns an array GBDeviceEvents
This allowed to remove some ugly hacks from pebble code,  when encoding a
response in a GBDeviceEventSendBytes  and at the same time trying to notify
generic code via another GBDeviceEnvent.
2015-08-27 15:02:29 +02:00
Daniele Gobbetti
3a6e433fb3 Merge remote-tracking branch 'origin/master' into low_battery_notification 2015-08-27 13:12:29 +02:00
Daniele Gobbetti
677e0808bf Centralize the calendar conversion to/from byte array. 2015-08-27 13:12:09 +02:00
Daniele Gobbetti
7923e153e6 Moved the enum to standalone in the model package. 2015-08-27 11:50:31 +02:00
Andreas Shimokawa
027e6fe8c3 Pebble: add more Datalogging endpoint debug output 2015-08-26 23:17:32 +02:00
Daniele Gobbetti
3356a4b066 Merge remote-tracking branch 'origin/master' into low_battery_notification
Conflicts:
	app/src/main/res/values/strings.xml
2015-08-26 15:46:33 +02:00
cpfeiffer
e1c02cc373 Prevent charts date in the future, documentation and cleanup 2015-08-25 22:45:07 +02:00
cpfeiffer
b4e34db1d2 Faster animation 2015-08-25 01:03:58 +02:00
cpfeiffer
0bb3188bc8 Start and end dates now work properly across charts
They are now managed by the Activity, because the fragments
may be created and destroyed at any time and hece cannot
synchronize their date-state all the time.

Open issue: moving across the borders (first day with data,
current day)
2015-08-25 00:54:16 +02:00
cpfeiffer
e47ebb8f09 Improvements to charts
- backward and forward buttons work better
- buttons only refresh the current fragment now
- activity shows fragment-specific titles
2015-08-25 00:33:37 +02:00
Daniele Gobbetti
6ebc727f97 Merge remote-tracking branch 'origin/master' into low_battery_notification
Conflicts:
	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java
2015-08-24 17:48:17 +02:00
cpfeiffer
070876db06 Allow disconnecting when device is connecting
Also require "initialized" state for "find device"
2015-08-24 13:19:17 +02:00
cpfeiffer
ba670bbb50 More testing work: with a new test for finding the device 2015-08-23 00:54:51 +02:00
cpfeiffer
6f7de96461 Fix find device (wrong EXTRA_ constant used) 2015-08-22 12:38:35 +02:00
cpfeiffer
77cad5c47f Initial support for testing the DeviceCommunicationService
Lots of support classes to enable local testing, without
a device or an emulator.
2015-08-22 01:09:56 +02:00
Andreas Shimokawa
cedd95186f Pebble: revert changes commited accidentially 2015-08-22 00:29:52 +02:00
Andreas Shimokawa
1150ad2b8d Pebble: Support taking Pebble Time screenshots. Closes #97. 2015-08-22 00:14:14 +02:00
Daniele Gobbetti
dcc988139f Merge remote-tracking branch 'origin/master' into low_battery_notification 2015-08-21 17:34:11 +02:00
Andreas Shimokawa
12337836bc bump version, update CHANGELOG.md 2015-08-21 16:06:23 +02:00
Daniele Gobbetti
df417e5c6c Fix bug regarding setting wear location.
Closes #95
2015-08-21 15:23:48 +02:00
Andreas Shimokawa
6e80978998 Pebble: Add generic method for Blobdb endpoint for deduplicating code. 2015-08-21 14:29:12 +02:00
Andreas Shimokawa
2b0acd649b Pebble: close TCP socket when disconnecting from emulator. Prevents hang. 2015-08-21 13:19:46 +02:00
Daniele Gobbetti
eb39ce9367 Further improvements:
- append a string on the control center when the device is charging
- battery status string is no more, welcome battery state enum
- the notification will not be shown when the device is charging, even if the level is below threshold
2015-08-21 08:41:57 +02:00
cpfeiffer
a1cb246e27 Add and use a "client interface" for the actions of the service
Previously, the DeviceCommunicationService was invoked directly,
via
Intent intent = new Intent(foo, bar);
intent.setExtra(EXTRA_BAZ, baz);
startService(...);

and this was scattered throughout GadgetBridge.
Now there is a "frontend" available, so that you can call
the service more easily, like
GBApplication.deviceService().connect();

For a start, this client interface (DeviceService) actually
implements the same interface (EventHandler) as the receiving side
(DeviceSupport). This may change in the future.

This will also make testing much easier, because we can use
this client interface to invoke the test service as well.
2015-08-21 01:03:57 +02:00
Andreas Shimokawa
faaa04b670 App Installation: various improvements
- make FwAppInstallerActivity wait for a completely initialized device
- check basalt/aplite compatibility with pbw to be installed and report intead of crashing
- fix crash when trying to install pbw with all app slots full
2015-08-20 18:55:22 +02:00
Daniele Gobbetti
0d8adeb7f9 Some refinements:
- only show the bigtext notification if the device has set extended battery info
- custom icon for the low battery notification (with license information)
- show device name in the notification
- set the notification to high priority
- the battery threshold is now set in GBDevice
2015-08-19 17:36:53 +02:00