cpfeiffer
716bbc7b78
Avoid NPE when fetching activity data:
...
java.lang.NullPointerException: Attempt to write to field 'int nodomain.freeyourgadget.gadgetbridge.miband.MiBandSupport$ActivityStruct.activityDataHolderProgress' on a null object reference
at nodomain.freeyourgadget.gadgetbridge.miband.MiBandSupport.flushActivityDataHolder(MiBandSupport.java:748)
at nodomain.freeyourgadget.gadgetbridge.miband.MiBandSupport.handleActivityNotif(MiBandSupport.java:689)
at nodomain.freeyourgadget.gadgetbridge.miband.MiBandSupport.onCharacteristicChanged(MiBandSupport.java:583)
at nodomain.freeyourgadget.gadgetbridge.btle.BtLEQueue$2.onCharacteristicChanged(BtLEQueue.java:369)
2015-07-25 00:09:24 +02:00
cpfeiffer
a1f60aab91
Fix logging configuration
...
Make sure to not invoke any logging before it is properly configured.
2015-07-25 00:09:24 +02:00
Andreas Shimokawa
49cc4ec9d6
Pebble: for 3.x notification, do not zero parent UUID
...
instead reuse the same reandom UUID again.
2015-07-24 09:33:20 +02:00
Andreas Shimokawa
91cc19befe
Pebble: spoof a newer application version (3.x)
2015-07-24 01:34:50 +02:00
Daniele Gobbetti
f16a96e9b2
Initial support for upgrading firmware of the MiBand.
...
This release seems to be working quite well with respect to the firmware upgrading itself. The user facing part needs more work.
In order to update the firmware one has to:
- open a file ending with .fw
- switch from the firmware upgrade activity to the main one
- connect to the miband
- return to the firmware upgrade activity
- press the "install" button (that became active when the device connection was established)
Caveats:
There are almost no check wrt. the integrity of the firmware files.
2015-07-23 17:14:51 +02:00
Andreas Shimokawa
844d929748
update remaining languages from transifex
...
Please fix the removed strings on transifex. Some of them might have been removed because the original english string has been changed.
2015-07-23 16:00:36 +02:00
Andreas Shimokawa
69f4b11594
update Korean translation from transifex
2015-07-23 15:56:47 +02:00
Andreas Shimokawa
268e658e6f
rename ACTION_INSTALL_PEBBLEAPP to ACTION_INSTALL
2015-07-23 12:09:01 +02:00
Andreas Shimokawa
5c26b2281f
Pebble: try to support notification dismissal on the Pebble Time (completely untested)
2015-07-22 20:53:18 +02:00
Andreas Shimokawa
80e93aeaf7
update CHANGELOG, bump version to 0.4.4 (not yet release time)
2015-07-21 22:55:26 +02:00
cpfeiffer
34dde2eb64
Eek
2015-07-21 22:30:11 +02:00
cpfeiffer
383a300566
Remove superfluous field
2015-07-21 22:29:29 +02:00
cpfeiffer
76fcbfcb52
Move activity data values into a separate struct ( #45 )
...
- saves some memory
- allows us to show the toast for the first chunk only
2015-07-21 22:27:15 +02:00
Andreas Shimokawa
b3a04f7afb
Pebble: more length calculation fixes for 3.x notifications with actions
2015-07-21 22:05:25 +02:00
Andreas Shimokawa
6c1e41b4ec
Pebble: fix some totaly obvious length calculation errors for actionable 3.x notifications
2015-07-21 21:56:11 +02:00
cpfeiffer
3662f32dbf
Remove duplicated constants
2015-07-21 21:42:04 +02:00
cpfeiffer
3590c7c853
Remove inadvertently re-added busy-state handling
2015-07-21 21:40:06 +02:00
Andreas Shimokawa
3c35f94a7e
Pebble: enable dismiss action on FW 3.x if force option is set
...
NOTES:
- Might break notifications altogehter (can't test)
- Cannot work because we do not interpret the response yet.
2015-07-21 21:32:05 +02:00
cpfeiffer
1f2b0329c5
Misc improvelets ( #45 )
2015-07-21 21:24:35 +02:00
Andreas Shimokawa
c9ab10e7e8
Pebble: commit missing PebbleProtocol changes for experimental notification dismissal
2015-07-21 01:33:13 +02:00
Andreas Shimokawa
74e1598bf7
Pebble: add experimental and incomplete support for dismissing 2.x notifications
...
Currently this dismisses all notifications on the Phone-
2015-07-21 01:27:05 +02:00
cpfeiffer
0f6491a11d
More WIP: sync from the charts activity
...
Also add preliminary buttons to go forward/backward in time.
2015-07-21 00:06:20 +02:00
cpfeiffer
13d2c2166c
Let DeviceCoordinator decide which activity to launch on click
2015-07-20 23:57:01 +02:00
cpfeiffer
184e0f2dea
New dependency to format durations (and use that where applicable)
2015-07-20 23:14:08 +02:00
cpfeiffer
4aa80c149c
Add some code to set the Mi Band latency
2015-07-20 21:43:23 +02:00
cpfeiffer
5d121e6e8f
Fix a pointer aliasing issue, add some constants, remove invalid "checkpointing"
2015-07-20 21:41:18 +02:00
Daniele Gobbetti
d967411d70
Add a toast to let the user know about the progress of the transfer.
2015-07-19 16:16:58 +02:00
Daniele Gobbetti
6953086c99
Allow setting alarms once for the next day.
...
(cherry picked from commit 417ea02)
2015-07-19 15:58:30 +02:00
Daniele Gobbetti
7f7cea75c1
Spare some complexity by letting the writer change the status to non-busy.
...
Before the code looked for the values written to the device with another method.
2015-07-19 15:52:27 +02:00
Andreas Shimokawa
f847d834af
Pebble: always force 3.x notifications on FW 3.x
2015-07-19 00:26:43 +02:00
Andreas Shimokawa
e6bc406d98
Fix funny typo :D
...
Thanks to @girlwithnoname for spotting
2015-07-18 23:38:59 +02:00
Andreas Shimokawa
095c70d469
Pebble: preparations for WIP Gadgetbridge Pebble App
2015-07-15 00:33:44 +02:00
cpfeiffer
d498bd976a
Work in progress #45
...
Comparison between Light Sleep and Deep Sleep.
(Currently wrong, needs more analysis)
2015-07-14 00:29:32 +02:00
cpfeiffer
b1e2671bec
limit maximum intensity to 180 for now... maybe make this configurable #45
2015-07-13 21:55:52 +02:00
cpfeiffer
04e628b2d1
Separate fragments for all activity kinds and just sleep #45
2015-07-13 21:54:46 +02:00
cpfeiffer
8b44f90bb6
Some more refactorings to support different charts
2015-07-12 23:42:23 +02:00
cpfeiffer
f53a037d7f
Use query instead of rawQuery
2015-07-12 21:50:09 +02:00
cpfeiffer
623e4724c2
Slightly better text when no data available
2015-07-12 21:48:48 +02:00
Andreas Shimokawa
47c43e9c28
Debug Activity: Fix layout for small screens and landscape mode
...
Fixes #84
2015-07-12 20:06:47 +02:00
cpfeiffer
6553558947
Experimental code for an activity sync problem. Commented out for now. #45
...
@daniele do you have an idea what this byte equence on the control point
characteristic could mean (and why the transfer stops then)?
2015-07-12 00:02:51 +02:00
cpfeiffer
b516ceda01
Support for displaying Toasts from non-ui threads
2015-07-11 21:49:51 +02:00
cpfeiffer
be45f7fe0c
check if table exists before dropping
2015-07-11 21:16:07 +02:00
cpfeiffer
a6e26e5ddc
Cleanup, use fragment based charts (WIP #45 )
...
Known issue: scrolling a zoomed-in chart interferes with swiping to the
next/previous chart (so far there's just one, but...)
Workaround: Swipe down and then left or right in one go, this will let
you scroll the zoomed chart
2015-07-11 00:03:41 +02:00
cpfeiffer
7c61bbb2be
Logging to find the cause for seldom device state/notification mismatch
2015-07-10 21:35:28 +02:00
cpfeiffer
40be935abd
Better time format for action logging
2015-07-10 21:02:03 +02:00
cpfeiffer
8b54c6e5c4
New incremental, cumulative database upgrades and downgrades
2015-07-10 00:31:45 +02:00
cpfeiffer
cc549a6c49
Basic database import and export (to external storage)
...
(In the Debug Activity)
2015-07-08 23:11:23 +02:00
Andreas Shimokawa
b9d5fc6572
update README
2015-07-05 01:43:45 +02:00
Andreas Shimokawa
c01423e79d
update README
2015-07-05 00:52:12 +02:00
Andreas Shimokawa
cdd26a43d2
Do not allow alarm to start alarm activity from a long press on a Pebble
2015-07-05 00:41:06 +02:00