1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-27 23:40:31 +02:00
Commit Graph

383 Commits

Author SHA1 Message Date
Daniele Gobbetti
4dfef382a9 Pebble: change the overflow menu of the weather system app.
If the weather notification app is not installed, link to fdroid (app if installed, web page of the app if not).
If the weather notification app is installed, show the options to activate and deactivate it.
2017-01-14 18:19:41 +01:00
cpfeiffer
1e24fa7ad8 Dummy weather notifucation config activity 2017-01-14 00:26:47 +01:00
Andreas Shimokawa
c6999713d2 Pebble: use Notifications system app as parent UUID for notifications 2017-01-09 15:11:50 +01:00
Daniele Gobbetti
3280607cc9 Pebble: hide the weather app menu entries on apps that aren't the weather app. 2016-12-31 10:15:08 +01:00
Daniele Gobbetti
e477d22c88 Pebble: support the system weather app.
- enable/disable weather app from the watchapp list
- convert weather data to a format that can be displayed by the system app

TODO: send the weather data periodically
2016-12-30 20:14:13 +01:00
Daniele Gobbetti
353bd4651b Show Gadgetbridge in the "share" system dialog for installing firmwares, apps etc. 2016-12-27 12:20:59 +01:00
cpfeiffer
bb8aff8c99 Fix axis label color live activity (dark theme) 2016-12-26 12:51:20 +01:00
cpfeiffer
da494cde7b Handle live activity for Mi2 and Mi1 in the same way #448
Realtime samples now use ActivitySample.NOT_MEASURED for unknown or
invalid values.
2016-12-26 12:51:12 +01:00
cpfeiffer
8719cadc43 Mi Band: fix live activity messing up stepcount #448
live samples now report relative steps, not absolute to the current
day's stepcount.

Also live samples' steps should NOT be added to the database since
they are already counted in the regular stepcount.
2016-12-26 01:38:20 +01:00
cpfeiffer
305bd7600c Fix current realtime steps calculations #450
timestamp is already in seconds instead of milliseconds

Also: port to REALTIME_SAMPLES
2016-12-26 00:23:02 +01:00
Andreas Shimokawa
17b581022b optimize imports 2016-12-09 20:14:17 +01:00
Andreas Shimokawa
ed38e524bf Make some static stuff non-static (potentially fixes instant run problem and leaks) 2016-12-07 23:13:51 +01:00
Uwe Hermann
0746aaa579 app: Random typo and consistency fixes. 2016-12-01 20:22:12 +01:00
Daniele Gobbetti
84327a5b86 Pebble: use also the device address as seed to store app configuration
This is not needed as long as one GB instance is used to manage a single pebble device, if multiple devices are managed the stored watchapp configuration could be messed up.
2016-11-27 11:31:03 +01:00
cpfeiffer
2f7eb9ef23 Some more improvements to discovery
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators
  can detect devices by their services.

Note: they should not rely on service uuids being available
2016-11-27 02:46:07 +01:00
cpfeiffer
b9ff2cd468 A few improvements to discovery
- display the right icon for found device candidates
- scan for specific LE services
2016-11-27 01:09:20 +01:00
cpfeiffer
2d4645f6cc Fix only the first day label being displayed in Week Steps charts 2016-11-24 23:35:10 +01:00
Andreas Shimokawa
84caf22479 fix weekly charts to start y axis at 0 2016-11-24 22:27:44 +01:00
Andreas Shimokawa
9d083e2330 Pebble: add Kickstart Watchface to app manager on FW 4.X
I know it only exist on 4.3+, but I am lazy
2016-11-24 22:10:32 +01:00
cpfeiffer
60cb67c3c8 Some cleanup 2016-11-24 21:15:27 +01:00
cpfeiffer
dfbaba4cb6 Make sure that the charts display the requested time range
(instead of only the range with available samples)
2016-11-22 15:53:58 +01:00
cpfeiffer
96a16245df Update to MPAndroidChart 3.0.1 2016-11-18 21:31:55 +01:00
Andreas Shimokawa
82a47022fa Pebble 2: allow to disable/enable HRM in context menu of Workout app
Okay this might be stupid  since Workout seems to work also works without HRM!
I assumed (wrongly) that I will disable Workout by disabling HRM

anyway, better than not being able to toggle it at all!
2016-11-15 12:17:51 +01:00
Andreas Shimokawa
4b7f47ba6c Pebble 2: add Workout system app to app manager on P2 and hexdump incoming HRM datalog 2016-11-15 11:56:14 +01:00
Daniele Gobbetti
1a22752b98 Pebble: enable localStorage
LocalStorage native functions are overridden to keep each watchface's settings separated. It's possible the bind method do not work on older versions of android.
2016-11-14 17:51:33 +01:00
Andreas Shimokawa
eb7646d26a Pebble: Fix vanished Health system apps (for affected users)
This code also allows us to add new system apps which will then appended to the current list of previous Gadgetbridge users.
2016-11-09 19:20:37 +01:00
Andreas Shimokawa
837dfd5917 Pebble: fix Pebble Health vanishing when deactivating 2016-11-09 12:06:13 +01:00
Daniele Gobbetti
b9bfb8c93a Use attr resources to enable theme dependent colors for the charts. 2016-10-29 20:29:35 +02:00
Andreas Shimokawa
f755d99023 Pebble: Add context menu option in app manager to search a watchapp in the pebble appstore 2016-10-29 11:41:08 +02:00
cpfeiffer
1cadb692fe Wild guess at trying to fix spontaneous reboots during discovery #412 2016-10-28 23:48:13 +02:00
Andreas Shimokawa
bdf403210e Pebble: Fix configuration of certain pebble apps
for appkeys with index 0 it was assumed they were not found becaus JSONObject.getOpt() returns 0 if not found.
Use the getOpt() method variant with a fallback parameter instead and set that to -1 fixes the problem.

(Also fixes a missing debug output)

Fixes #419
2016-10-28 00:03:50 +02:00
cpfeiffer
a39e3a035c Move device deletion logic to DeviceCoordinator and subclasses 2016-10-24 20:02:44 +02:00
cpfeiffer
4122e0c20c Add button "Test New Functionality" 2016-10-11 23:35:58 +02:00
cpfeiffer
344f6bcaa0 Use separate AppCompatPreferenceActivity from Android samples
(instead of mixing it with our code)
2016-10-11 22:07:56 +02:00
cpfeiffer
363b7cbf28 @Override 2016-10-11 21:47:45 +02:00
cpfeiffer
c2ff05e849 Make timestamp to mpandroidchart float x-value explicit 2016-10-08 21:27:32 +02:00
cpfeiffer
5a2ddaaec0 Use x-values instead of x indices for the charts 2016-10-08 01:35:03 +02:00
cpfeiffer
558c9e4664 Fiix visal glitch in weeksteps chart (first and last bar only partly visible) 2016-10-07 21:46:00 +02:00
cpfeiffer
e5d178b315 Fix crash with mpandroidchart 3.0pre (master) 2016-10-04 23:39:14 +02:00
cpfeiffer
75bca1b924 Update to latest master in mpac and fix labels for sleep chart as well 2016-10-04 00:09:56 +02:00
cpfeiffer
f35f76a42b Fix extraneous space at the bottom of the week steps chart 2016-10-04 00:04:04 +02:00
cpfeiffer
eccf9164f6 No need to have a separate xLabelsFormatter 2016-10-03 23:48:32 +02:00
cpfeiffer
dee492bc4f Fixes regarding xlabels -- must set them at the correct point in time
(otherwise we get ArrayIndexOutOfBoundsException when the chart
refreshes and the wrong xLabels, potentially with fewer entries are used)
2016-10-03 23:36:04 +02:00
cpfeiffer
827c99f620 Fix weekday charts, closes #403 2016-10-03 22:42:25 +02:00
Daniele Gobbetti
bbecfbeace Check if the bluetoothReceiver is still valid before unregistering it.
Do not set the scan tipe as BT classic if the discovery action has been set by BLE scans.
2016-10-03 22:31:33 +02:00
cpfeiffer
dd590528dc Add back the x-labels 2016-10-03 21:53:06 +02:00
Andreas Shimokawa
ed343778ee cleanup Debug activity a bit, add Spinner and remove a lot of buttons 2016-10-03 20:51:28 +02:00
cpfeiffer
5bdc7933b3 Somewhat hacky support for Mi2 notification icons #323 2016-10-02 23:04:59 +02:00
cpfeiffer
2a0d97b39a Improved error handling, display errors when deleting device 2016-09-30 23:07:30 +02:00
cpfeiffer
09502f96c9 AlertDialog.show() is non-modal, so put code into callback. Also added unpairing. 2016-09-30 22:58:28 +02:00