Andreas Shimokawa
4641e51715
Fix possible KitKat crash in NotificationListener
...
Also fix some more warnings
2019-09-17 13:37:03 +02:00
vanous
29375be3e2
Refresh ControlCenterv2 on menu exit
2019-09-17 13:25:57 +02:00
Andreas Shimokawa
8374a2b8f8
Widget: also try to signal sleep/steps updates for pebble
2019-09-16 23:18:12 +02:00
Andreas Shimokawa
fcc9ad8f95
Widget: Also update for Pebble Misfit and Morpheuz
...
This commit also removes GBDeviceEventSleepMonitorResult since it was unused and highly Morpheuz specific
2019-09-16 22:48:21 +02:00
Andreas Shimokawa
a63cd90876
Widget: signal new data for No1F1 and ZeTime also
...
Pebble is still missing - since data is pushed and not fetched...
Will think about it.
2019-09-16 22:31:36 +02:00
Andreas Shimokawa
89c7066d32
Widget: Only signal new data only when syncing activity data (not on fetching logs etc), do the same for Mi Band 1
2019-09-16 22:25:58 +02:00
vanous
43bfa791ad
Adds plurals to a string of the Widget.
2019-09-16 20:45:21 +02:00
vanous
c58b980208
Connect device button settings and logic
2019-09-14 00:42:09 +02:00
vanous
b3d1068870
Change color, refresh charts
2019-09-14 00:24:40 +02:00
vanous
132e92041e
Split preferences, add chart settings activity, add button
2019-09-14 00:24:40 +02:00
Sebastian Kranz
194f5b04ae
Enable the unicode emoji support, even if the zetime has only some of the most used emojis on board.
2019-09-14 00:20:07 +02:00
Sebastian Kranz
0a6d0bd178
Add method to set the language of the watch. Note: Android Studio seems to have done automatic code formatting here.
2019-09-14 00:20:07 +02:00
Andreas Shimokawa
876515f1fd
Amazfit Cor: support custom emoji font
...
This commit refactors code and implements a custom device specific string
filter, which does nothing by default.
The implementation in HuamiSupport does the custom emoji conversion.
The setting has been moved from devicesettings_amazfitbip.xml to an extra file
As soon as there is a custom font for Mi Band 2/3/4 it is sufficient to add
"devicesettings_custom_emoji_font.xml" to the list of supported settings
in the appropriate coordinator and everything will work.
2019-09-14 00:05:39 +02:00
vanous
cf28ee48f4
add .apply()
2019-09-07 22:41:35 +02:00
vanous
975b698564
remove preference keys when deleting device
2019-09-07 22:41:35 +02:00
vanous
3d6ddb8d5e
make look nicer - font, uri string, buttons positions
2019-09-07 11:07:40 +02:00
vanous
503fe854eb
Add test button, @stringify strings, add headers
2019-09-02 23:06:39 +02:00
Andreas Shimokawa
4780c26dd8
Widget: change float to int where appropriate, remove code that did nothing from getTotalsStepsForActivityAmounts()
2019-09-01 22:48:52 +02:00
Andreas Shimokawa
3389fcdfdd
Widget: Fix null pointer exception when a device which has no activity database is used in Gadgetbridge
...
For example a vibratissimo :D
2019-09-01 22:35:02 +02:00
Andreas Shimokawa
8eb494ab85
Widget: some cleanups
...
- use LocalBroadcastManager when broadcasting new data event
- use constants for actions everywhere and move them
2019-09-01 22:09:09 +02:00
vanous
957d441859
Add Status and Alarms widget
...
Squashed commits from #1604
2019-09-01 21:35:53 +02:00
Nephiel
b40c3ade85
Amazfit Bip: Add emoji support when using custom font firmware
2019-08-31 22:32:18 +02:00
Andreas Shimokawa
ce9eab8def
Mi Band 4: really fix sending weather location
...
Really fixes #1609
2019-08-31 22:14:50 +02:00
Andreas Shimokawa
8f4489a21c
Mi Band 4: Fix call notifcation not stopping when call gets answered or rejected on the phone
...
This changes the way to how to stop call notification for all Huami device back to Mi Band 2
Also clean up unused code
Fixes #1612
2019-08-29 08:32:29 +02:00
Andreas Shimokawa
b38b83377c
Mi Band 2: enable third party hr sensor access setting
...
This works but since the Mi Band 2 has no "status" menu or activities, live activity has
to be started (charts swipe to right), but that spams the database...
2019-08-28 10:11:15 +02:00
Andreas Shimokawa
243eec042d
Mi Band 3/4, Amazfit Bip/Cor: Add setting to expose the HR sensor to 3rd party apps
...
Closes #1606
2019-08-27 11:13:45 +02:00
Andreas Shimokawa
da2e073dc2
Mi Band 4: Whitelist latest stable and beta firmware
2019-08-25 20:23:53 +02:00
Andreas Shimokawa
d07ca6faa6
Mi Band 4: Fix location not being updated on the Band
...
Also move generic code from AmazfitBipSupport to HuamiSupport where is belongs
Fixes #1609
2019-08-25 09:56:06 +02:00
Andreas Shimokawa
984db60c5f
Fix formatted values for charts
2019-08-24 12:55:33 +02:00
Andreas Shimokawa
a69a139602
Migrate to upstream MPAndroidChart v3.1.0
2019-08-24 12:41:26 +02:00
vanous
2d233141b4
adds custom renderer for better view of many columns
2019-08-24 11:58:32 +02:00
Andreas Shimokawa
8bed673a95
Annotate LineageOsWeatherReceiver as Android >=M, and only try to use it with Oreo or later
2019-08-22 21:31:08 +02:00
keeshii
a70aa5e749
Added LineageOs Weather receiver.
2019-08-22 21:28:13 +02:00
Andreas Shimokawa
aec3d21216
Mi Band 4: remove unsupported DND setting from settings menu
2019-08-22 10:20:45 +02:00
Andreas Shimokawa
c1145e1244
Mi Band 4: Support flashing the V2 font that came with beta FW 1.0.6.00
...
Only tested with 1.0.6.00
It now contains new characters like äöüß and others.
2019-08-21 23:24:51 +02:00
Andreas Shimokawa
d7c6fad235
Mi Band 4: decode swim info (not used yet)
...
After swimming a lot on the sofa and desk this seems right and in line with the data displayed on the band
swimming styles I got so far are breast and freestyle. Others are probably missing.
Might be correct for Cor also (I don't have one)
2019-08-15 11:14:41 +02:00
Andreas Shimokawa
13b078aadd
fix verison typo (before I get a PR again :P)
2019-08-14 19:40:10 +02:00
Andreas Shimokawa
c17c3ed341
Improve parsing and debug output for activity summaries from Mi Band/Amazfit
2019-08-14 19:24:09 +02:00
Andreas Shimokawa
26165f9117
Amazfit Bip/Cor: Fix resetting of last fetched date for sports activities
...
For Mi Band 3/4 this does nothing, since the Mi Band seems to remove the activities from the Band immediately after fetching
2019-08-14 19:24:03 +02:00
Andreas Shimokawa
320f792d19
Add icons for "swimming" and "exercise"
...
Also set tint color to gray (for dark theme) and remove duplicate sleep icon
2019-08-14 07:55:10 +02:00
Andreas Shimokawa
b5ea3ca591
Hexdump sports activity packets for better analysis
...
type 2 seems to be pause, 3 resume.
type 8 and seems to be related to swimming activites
2019-08-13 23:02:10 +02:00
Andreas Shimokawa
f99bc0de64
Move another file from AmazfitBip to Huami which is no longer Bip specific
2019-08-13 22:20:18 +02:00
Andreas Shimokawa
ff7886765f
Add Swimming to sport activity types, rename some AmazfitBip stuff to Huami (these were things introduced with the bip but working with other devices now also)
2019-08-13 22:04:52 +02:00
vanous
a263059317
Modify charts range based on settings. More/Less labels density.
2019-08-13 14:30:54 +02:00
vanous
80bd31d894
Modify Charts Fragment's Titles
2019-08-13 14:30:54 +02:00
vanous
28fde846ea
Modify getTitle(). Probably not visible, but done for completness.
2019-08-13 14:30:54 +02:00
vanous
3017742cba
Added type to intent when sharing
2019-08-12 14:16:20 +02:00
vanous
5fe4ea7246
Clean commented code
2019-08-12 14:13:20 +02:00
vanous
7809655ef4
Add Average Settings. Addformat method to get average.
2019-08-12 14:13:20 +02:00
vanous
f11628b42b
Add Averages to Charts
2019-08-12 14:13:20 +02:00
Konrad Iturbe
da59991aa5
Use Rebble Store URI
2019-08-12 14:07:37 +02:00
Andreas Shimokawa
0fd4d523a0
Amazfit Bip: Whitelist new firmware versions I tested
2019-08-07 17:24:01 +02:00
Andreas Shimokawa
57a235742d
Properly disable new ble scanning for testing
...
(inverted logic committed accidentially)
2019-08-03 23:40:07 +02:00
Andreas Shimokawa
461842a945
fix copyright header for newly added file
2019-08-02 23:52:25 +02:00
Andreas Shimokawa
02d02d2329
Add Initial Mijia LYWSD02 support (Smart Clock with Humidity and Temperature Sensor)
...
This only sets the time on connect.
2019-08-02 23:49:14 +02:00
Andreas Shimokawa
aefd7520f3
Mi Band 3/4, Amazfit Cor/Bip: set language immediately when changing it (not only on connect)
...
Helps testing
2019-08-02 00:11:11 +02:00
Andreas Shimokawa
97540d734f
Mi Band 3/4: Allow enabling the "NFC" menu where supported
...
Pretty useless, because we do not support NFC - but nice for testing
2019-08-01 23:07:28 +02:00
dakhnod
8db0812ed0
fixed settings bug
2019-08-01 22:39:34 +02:00
dakhnod
961eb1c4ce
adjusted battery threshold
2019-08-01 01:02:48 +02:00
dakhnod
b089ad7531
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-29 00:56:32 +02:00
Andreas Shimokawa
124d03d171
Mi Band 4: Enable music info support (displays now on the band)
2019-07-28 14:34:04 +02:00
Andreas Shimokawa
261ddee707
Mi Band 4: Support setting date format (for built-in watchfaces)
2019-07-26 21:05:16 +02:00
Andreas Shimokawa
8d567c1e6d
fix build
2019-07-26 19:37:00 +02:00
dakhnod
32a2402048
removed Toast.makeText
2019-07-26 18:11:29 +02:00
dakhnod
f4d484f698
removed getDelegate()
2019-07-26 18:00:31 +02:00
dakhnod
1e936e4a85
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-26 17:57:12 +02:00
dakhnod
50483dd271
added UI elements and Activity data fetch
2019-07-26 16:43:38 +02:00
dakhnod
0b572505b3
removed DeviceSupportService hack
2019-07-26 16:42:53 +02:00
Andreas Shimokawa
8449e55f9e
Amazfit Cor: Fix empty menu on Amazfit Cor 2
...
Fixes #1563
2019-07-26 08:57:41 +02:00
Andreas Shimokawa
17599a797a
remove unused imports
2019-07-25 22:33:41 +02:00
Andreas Shimokawa
31db568832
Mi Band 4: Fix RES and FW update
2019-07-25 22:18:48 +02:00
Andreas Shimokawa
b6e78c1b9c
Mi Band 4: Support flashing watchfaces
...
FLASHING FIRMWARE/RES/FONT IS STILL UNTESTED
2019-07-25 20:51:28 +02:00
dakhnod
e1d2ba32da
fixed settings
2019-07-25 12:00:50 +02:00
dakhnod
1af8daba7a
added SetTime request
2019-07-25 11:47:08 +02:00
dakhnod
4772ec714c
addad DEVICE_CHANGED Intent
2019-07-25 11:38:56 +02:00
dakhnod
ca26d856ba
code cleanup
2019-07-25 11:34:37 +02:00
dakhnod
886113dad8
tweaked init process
2019-07-25 11:30:33 +02:00
dakhnod
ef692498af
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-25 11:12:50 +02:00
dakhnod
d802aa4ab1
added hardware version dependant function limiting
2019-07-25 11:12:24 +02:00
dakhnod
2ca1d69a17
reformatting
2019-07-25 10:56:03 +02:00
dakhnod
3f79592588
reworked init process
2019-07-25 10:52:27 +02:00
dakhnod
aaa9e7bef2
Formatted device information
2019-07-25 10:51:46 +02:00
dakhnod
8f996e04cd
Added device information and reworked notifications
2019-07-25 10:30:18 +02:00
dakhnod
8775255d69
Added Request
2019-07-25 10:29:45 +02:00
Andreas Shimokawa
5ff5561772
Mi Band 4: Fix notification icons and cut-off text
2019-07-24 09:33:53 +02:00
Andreas Shimokawa
044f6c11cd
Mi Band 4: WIP firmware update preparation
...
Nothing works yet
2019-07-23 23:49:21 +02:00
Andreas Shimokawa
9042966a40
Mi Band 4: Fix empty notifications
...
Icon still missing
2019-07-23 22:42:30 +02:00
dakhnod
57e28c2dd0
added SetCountdownSettings Request (with buff)
2019-07-23 22:26:51 +02:00
dakhnod
9d251d99d2
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-23 20:30:18 +02:00
dakhnod
8bda4790a9
added GetCountdownSettings Request
2019-07-23 20:30:00 +02:00
Andreas Shimokawa
a60268c05c
Mi Band 4: Bring your own key support (blindly done, I dont have my key)
...
THIS STILL REQUIRES MI FIT AND YOUR EXTRACTED KEY
HOWTO:
1) press + button in Gadgerbridge
2) LONG PRESS Mi Band 4
3) Tap "Auth Key"
4) Enter your key prefixed with 0x (eg. 0x112233445566778899aabbccddeeff00)
5) Go back
6) Tap Mi Band 4
Success? You tell me.
2019-07-23 08:56:26 +02:00
dakhnod
c0eb1420b2
adjusted initial sync
2019-07-21 17:21:42 +02:00
dakhnod
84952543e4
cosmetics
2019-07-21 17:10:55 +02:00
dakhnod
ed651ac976
fixed vibration setting
2019-07-21 17:09:14 +02:00
dakhnod
62feefb67e
reworked settings, nearly removed DeviceSupport Hack
2019-07-21 16:47:17 +02:00
dakhnod
7d015e3275
added different requests
2019-07-21 16:42:28 +02:00
dakhnod
e2a573e3e2
fixed button overwrite for commuter
2019-07-20 16:03:31 +02:00
dakhnod
c99a3c91b5
improved file upload error handling
2019-07-20 15:45:14 +02:00
dakhnod
f5c8ea39b1
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-18 11:24:15 +02:00
Andreas Shimokawa
8d50e8ef08
Mi Band 3: Allow setting date format in per-device settings
...
Closes #1544
2019-07-16 23:48:08 +02:00