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

346 Commits

Author SHA1 Message Date
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
cpfeiffer
2e7fb57172 Display device name to delete, and use different API to delete device 2016-09-30 22:58:28 +02:00
cpfeiffer
b890242c4f Only refresh when deletion of device was confirmed 2016-09-30 22:58:28 +02:00
cpfeiffer
f44974c215 Use findDevice() instead of getDevice() when you want to delete it 2016-09-30 21:27:33 +02:00
cpfeiffer
1fd6b59bf8 Fix logic error 2016-09-30 20:19:06 +02:00
cpfeiffer
27c83604d3 Update DeviceManager after deleting a device 2016-09-30 20:17:20 +02:00
Andreas Shimokawa
56d8a49d5b only disconnect device when confirming delete dialog 2016-09-30 19:20:04 +02:00
Andreas Shimokawa
5c0618d43d show confirm dialog before actually delete device
Also delete device last (after associated data), so that we do not leak if something fails

(#401)
2016-09-30 19:04:44 +02:00
Andreas Shimokawa
30d686fa50 support deleting devices and associated data
(#401)

TODO:
- remove device from list after deleting (needs changes to DeviceManager)
- confirmation dialog!!!
2016-09-30 13:41:06 +02:00
cpfeiffer
fbfc9ed97f Workaround for https://github.com/PhilJay/MPAndroidChart/issues/2317 2016-09-29 22:45:17 +02:00
cpfeiffer
f58b1f33c6 Fix parameter order for mpandroidchart 3.0 2016-09-29 22:45:17 +02:00
cpfeiffer
1b5bc23981 Initial port to mpandroidchart 3.0
does not quite work yet
2016-09-29 22:45:17 +02:00
cpfeiffer
dbdd7366ed Reenable the lollipop LE scanner, but after the plain BT scanner 2016-09-26 22:30:15 +02:00
Andreas Shimokawa
cb232638d4 disable new btle scanning, it does not work for me :( 2016-09-26 22:07:46 +02:00
cpfeiffer
0341c7f61f fix e.printStackTrace() by logging instead 2016-09-26 11:44:08 +02:00
JohnnySun
3259efbd10 When discovery gadget use Lollipop+ device, use new BTLE API instead of old general BT discovery.
(cherry picked from commit 53e3fde7c0)
2016-09-26 11:43:28 +02:00
Andreas Shimokawa
696611d392 Do not show "your activity" if activity tracking is not supported 2016-09-20 22:02:40 +02:00
Andreas Shimokawa
1f8cfa5a68 Vibratissimo: clear queue when setting vibration 2016-09-20 21:49:27 +02:00
Andreas Shimokawa
6a18d90fee Vibratissimo: add simple and buggy activity with a slider for vibration control
Also includes some fixes and "find your device" support ;)
2016-09-20 20:28:52 +02:00
cpfeiffer
ec0a0db4f6 Make strings translatable in the database management activity 2016-09-06 22:59:08 +02:00
cpfeiffer
afef50dfab Hide the "merge old activity database" elements when there is no old db 2016-09-05 23:55:00 +02:00
Daniele Gobbetti
1e6cb67edd UI refactoring of the DB management activity.
Added a method to delete the legacy DB only.
2016-08-31 17:35:28 +02:00
Daniele Gobbetti
6a2043eeb7 Create DB management activity by taking the existing functionalities from the debug activity. 2016-08-31 15:12:26 +02:00
Andreas Shimokawa
93b165ee96 onboarding: use the text area not the button itself for displaying the info text ;) 2016-08-29 00:32:36 +02:00
Andreas Shimokawa
07ee860b1c add information to onboarding activity, make strings translatable 2016-08-29 00:17:40 +02:00
Andreas Shimokawa
c55369747d launch onboarding (database migration) activity from service when:
- device got initialized
- is not yet in the new device db
- an old database exists
2016-08-28 23:49:05 +02:00
cpfeiffer
840a125c81 Fix compilation 2016-08-27 22:55:00 +02:00
Andreas Shimokawa
34aead6c63 remove obsolte stuff 2016-08-26 23:37:17 +02:00
cpfeiffer
c59553c9c9 Rename GBDevice#hardwareVersion to model
(e.g. while DeviceType is "PEBBLE" in general, the model
might specify a Pebble Time or Time Steel.
2016-08-26 20:57:59 +02:00
Andreas Shimokawa
4363f110fb finish onboarding activity after import 2016-08-25 01:27:09 +02:00
Andreas Shimokawa
063d00cc51 only launch onboarding after device is initialized and write device to database if not in yet. 2016-08-25 01:08:43 +02:00
cpfeiffer
02ac70e2a7 Only dismiss the dialog is the activity is still alive 2016-08-24 22:56:42 +02:00
Andreas Shimokawa
ec4469a87b Testing with dummy onboarding activity
crashes
2016-08-24 20:15:26 +02:00
cpfeiffer
a38bea892a Some logging of found devices/uuids 2016-08-14 23:21:09 +02:00
Andreas Shimokawa
9520e23439 fix negative steps in Charts with Morpheuz 2016-08-02 00:31:29 +02:00
Andreas Shimokawa
8ea29e6e1d Refactor database / sample access (#206)
We now have separate tables for each provider's samples but a common interface.
2016-07-27 23:34:13 +02:00
cpfeiffer
f54163faeb centralize quit() functionality in GBApplication 2016-07-08 22:35:52 +02:00
Andreas Shimokawa
4de45787c3 Properly acquire network location if last location is not known
A toast will be shown if the network location provider is disabled.
Location will be automatically acquired after enabling it.

Fixes #346
2016-07-05 23:56:14 +02:00