Andreas Shimokawa
5d8eb432fc
fix missing import
2021-01-06 22:52:59 +01:00
Andreas Shimokawa
50ce99b838
Amazfit GTS2: Also use new protocol for calls like GTR2
...
This is an assumption
2021-01-06 22:15:22 +01:00
Andreas Shimokawa
c896e476f4
Amazfit GTR2: Try to fix incoming calls blindly
2021-01-06 16:29:11 +01:00
Andreas Shimokawa
a50cc8d42d
InifiniTime: set device busy during firmware upgrade
...
Since this is the only busy task in use we just call gbDevice.unsetBusyTask()
upon completion/error
2021-01-06 15:12:41 +01:00
Andreas Shimokawa
c0090e29cb
Revert reordering of ids introduced by #2153
...
This fixes the Verge Lite id back to 29 and changes Amazfit Bip U Pro to 30 (and Live View to 320)
Liveview has no activity data and proably has very few if any users. So re-pairing should be acceptable
2021-01-06 10:17:15 +01:00
DanialHanif
2b8cd6013a
Add Amazfit BIP U Pro support
2021-01-06 10:13:50 +01:00
vanous
6f0245a23c
Data(base) Management screen clarifications
...
- rename to Data management in menu and activity
- expand texts and explain files meaning
- add confirmation screen to export
- change layout to Linear, rather then Grid
- add listing of file content in the /files directory
- allow Data management activity to rotate
Add missing widget string to strings
2021-01-03 15:46:12 +01:00
Andreas Shimokawa
2828ca59a1
Amazfit GTS2: fix pairing
...
Fixes #2140
2020-12-28 22:07:54 +01:00
TaaviE
09eb470b64
Renamed removeBroadcastReceivers to a more correct name
2020-12-28 22:03:41 +01:00
Toby Murray
ab306b1352
Add BlueTooth receivers in onResume
...
Pairing some devices requires a PIN to be entered. E.g. the flow is: confirm you'd like to pair, pass off to Android which prompts for a PIN to pair with (typically shows up on the non-phone device's screen or is hard coded in the manual), then return back to the app.
When this pairing request screen pops up, it takes focus. This invokes onPause and onStop in the DiscoveryActivity, which removes the BlueTooth broadcast receivers. Returning focus (after successful pairing), there's nothing to listen to the event. Practically speaking, GadgetBridge last saw the device as BOND_BONDING, so it's out of sync. If queried, the device is BOND_BONDED, so it's good to move on to the next step.
Many existing pairing activities (Lenovo, MiBand, Pebble, Watch9) have an implementation of onResume() to presumably tackle this issue, this adds it to `DiscoveryActivity` as well. Testing with some other supporting code, this allows a Garmin vivosport to appear in Gadgetbridge.
2020-12-28 22:03:41 +01:00
t-m-w
5a9d1e23f5
Update Do Not Disturb support to allow priority notifications to break through.
2020-12-28 22:02:05 +01:00
Daniel Dakhno
df2300777d
Fossil Hybrid: avoid unnessecary widget rendering
2020-12-24 14:35:22 +01:00
vanous
be53130dba
ensure that correct device is used for activity launched from widget
...
remove code to trigger error, forgotten from testing
update changelog
2020-12-21 11:23:01 +01:00
angelpup
4676c50afc
Added Support for Amazfit Verge Lite
...
Co-Authored-By: angelpup <angelpup@noreply.codeberg.org>
Co-Committed-By: angelpup <angelpup@noreply.codeberg.org>
2020-12-20 22:39:51 +01:00
vanous
502f689862
Rework the Daily Widget:
...
- make layout transparent rather then red, update the preview image
- move battery to top row to reduce size, add status indicators with icons
- add preference settings, to choose for which device this widget is
- data is no longer calculated for all devices but for a selected device
- add debug items to view and erase widget settings and registrations
(debug items are intentionally not translatable yet)
2020-12-20 19:01:00 +01:00
Andreas Shimokawa
ec95766d1f
add missing AbstractGBX100ActivitySample
...
Closes #2123
2020-12-20 18:21:20 +01:00
xaos
68e7a5fea9
refined error message for invalid authentication key
...
Co-Authored-By: xaos <xaos@noreply.codeberg.org>
Co-Committed-By: xaos <xaos@noreply.codeberg.org>
2020-12-20 00:25:44 +01:00
andyboeh
02b85f4c11
Casio GBX-100: Add step count data and more device settings
...
Co-Authored-By: andyboeh <andyboeh@noreply.codeberg.org>
Co-Committed-By: andyboeh <andyboeh@noreply.codeberg.org>
2020-12-20 00:22:35 +01:00
vanous
074bc885c8
send broadcast and vibration on button action only if enabled
2020-12-18 10:56:42 +01:00
Andreas Shimokawa
09bf9db799
Huami: Use blue icon instead of rainbow color icon for Signal (the rainbow icon was blue in early days)
2020-12-14 17:15:01 +01:00
Andreas Shimokawa
4fb79ac2b2
Huami: Add new option to disting to properly distinguish connected adverising and 3rd party hr exposure
2020-12-13 22:38:03 +01:00
TinfoilSubmarine
2f89de6250
Add Amazfit Bip U menu items and remove shortcuts ( #2107 )
...
fix a tab vs. space misalign
add missing menu items for Bip U (and possibly others)
remove shortcut config from Amazfit Bip U settings
add (most) menu items for Amazfit Bip U
Co-authored-by: AluminumTank <joel@beckmeyer.us>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2107
Co-Authored-By: TinfoilSubmarine <tinfoilsubmarine@noreply.codeberg.org>
Co-Committed-By: TinfoilSubmarine <tinfoilsubmarine@noreply.codeberg.org>
2020-12-05 16:22:09 +01:00
Gordon Williams
480ec40ff2
Fix realtime data, add suggestions from https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2106
2020-12-04 16:30:19 +00:00
Gordon Williams
c1195ba05d
Support for HRM and steps activity recording in Bangle.js
2020-12-04 15:14:00 +00:00
Andreas Shimokawa
d0c5ffec28
Amazfit Bip S: Fix crash with notifictions with only a title (GitNex does this)
...
Probably affects other newer Huami devices
2020-12-02 17:07:40 +01:00
Andreas Shimokawa
c7f75c3dc3
Amazfit TRex: Fix previous commit
2020-12-01 21:29:32 +01:00
Andreas Shimokawa
aa6e2a291a
Amazfit TRex: add missing menu items, remove non-existent
2020-12-01 18:56:37 +01:00
Andreas Shimokawa
85da3594fc
Amazfit Bip U: Probably fix totally broken sleep/step data
2020-12-01 15:19:27 +01:00
Andreas Shimokawa
d4308d1782
Amazfit Bip U: fix detection
2020-11-30 23:38:37 +01:00
Andreas Shimokawa
ffa46482fd
Add missing code from last commit
2020-11-30 17:13:48 +01:00
Andreas Shimokawa
1bad73e20c
Amazfit Bip U: Blindly add untested support
...
Based on Bip S, don't know what works and what not
2020-11-30 17:09:29 +01:00
Andreas Shimokawa
6042d285bb
compile fix
2020-11-30 17:08:35 +01:00
Daniel Dakhno
55449c1d25
Fossil Hybrid: added fallback vibration to old Q's
2020-11-29 17:15:03 +01:00
Daniel Dakhno
66d3cdcc5c
Merge remote-tracking branch 'origin/master'
2020-11-29 17:10:19 +01:00
Daniel Dakhno
996674836e
Fossil Hybrid: added firmware upgrade to old Q's
2020-11-29 17:10:10 +01:00
vanous
98bb01dfa1
Make charts tabs selectable sortable
2020-11-28 23:42:30 +01:00
vanous
d180442b47
Allow to clear activity label. Select device for foreign sport activiry.
2020-11-26 23:21:50 +01:00
Daniel Dakhno
7fe8a88ee7
Fossil Hybrid: keep widget values after widget reload
2020-11-26 21:12:56 +01:00
vanous
5c3c23ea50
Improve Sports Activities dashboard and Filter
...
- makes nicer dashboard, unify with design in Activity List
- dashboard is now part of the sports activities list (had to overcome
some hurdles, because of the multiselect for sharing)
- add icons to Spinners in Sports Filter
2020-11-26 17:19:08 +01:00
Andreas Böhler
b0a0a29bcb
Casio GB-5600B/GB-6900B: Add configurable disconnect notification
2020-11-23 22:59:16 +01:00
Andreas Böhler
6f18a1dd73
A few fixes to the init sequence
2020-11-21 22:12:19 +01:00
Andreas Böhler
8fd0e1f13f
Add support for synchronizing profile settings
2020-11-21 22:12:19 +01:00
Andreas Böhler
2ef9128cf8
Move BCD functions to its own Util class
2020-11-21 22:12:19 +01:00
Andreas Böhler
4fd904d33f
Rebuild notification handling to work with postTime() instead of getId()
2020-11-21 22:12:19 +01:00
Andreas Böhler
80df573ccf
Improve initialization sequence
2020-11-21 22:12:19 +01:00
Andreas Böhler
9d710308fa
Limit the number of temporarily stored notification IDs
2020-11-21 22:12:19 +01:00
Andreas Böhler
5edac523f0
Improve notification removal
2020-11-21 22:12:19 +01:00
Andreas Böhler
4ad8eaab89
Fix removal of notifications
2020-11-21 22:12:19 +01:00
Andreas Böhler
4fe057e56b
Fix firstConnect when bonding is not required
2020-11-21 22:12:19 +01:00
Andreas Böhler
ae02c825b4
Fix reconnect and initialization
2020-11-21 22:12:19 +01:00
Andreas Böhler
92986724ee
Fix watch init (only do the bare minimum) and add basic
...
notification support. Reconnect is WiP.
2020-11-21 22:12:19 +01:00
Andreas Böhler
b653789b66
Add preliminary support for Casio GBX-100: connecting and time synchronization.
2020-11-21 22:12:19 +01:00
Andreas Böhler
08ff70ac41
Refactor Casio support for multiple watches
2020-11-21 22:12:19 +01:00
Andreas Shimokawa
0e88adbaf7
Mi/Amazfit Band 5: Support flashing watchfaces
2020-11-20 22:03:23 +01:00
Andreas Shimokawa
bd0c645db5
Add support for Amazfit GTS2 (untested)
...
Also change icon for GTR2 to a round one
2020-11-15 16:25:47 +01:00
Andreas Shimokawa
cc7a7b7caf
Fossil Hybrid HR: delete activity data after syncing
...
This partially reverts f6a7435b7e
2020-11-14 22:17:24 +01:00
Andreas Shimokawa
435808467b
Amazfit GTR2: Make sure new firmware upgrade code gets used (shamelessly assume it uses this right from the start)
2020-11-14 22:04:09 +01:00
marco.altomonte
ac66885848
Fix main fab behavior
2020-11-14 12:21:38 +01:00
vanous
e3a5a63e08
Separate AboutUser and link to it from Charts Settings
2020-11-14 10:06:55 +01:00
vanous
71f6fd77cb
Add final tweaks to Daily Sessions List Dashboard view
2020-11-13 14:22:15 +01:00
Andreas Shimokawa
5f85bba438
Amazfit GTR: Also fix firmware flashing for the chinese(?) variant
2020-11-12 18:06:52 +01:00
Andreas Shimokawa
66bb6f694e
Amazfit GTR Lite: Prevent using new firmware flashing code (they have not upgraded the protocol yet)
2020-11-12 17:47:31 +01:00
Andreas Shimokawa
c3b8604338
Amazfit GTR: FIx firmware flashing on newer firmares
2020-11-12 17:29:25 +01:00
vanous
447e9110db
Simplify HR calculation
2020-11-12 13:50:44 +01:00
vanous
db7280b359
Adjust personal settings defaults to prevent zero values
...
Show/hide intensity in sleep per preference
Optimize icons
2020-11-12 13:50:44 +01:00
vanous
551a5c1a66
Add Activity List Dashboard/Summary view
2020-11-12 13:50:44 +01:00
vanous
9c90452f92
Add intensity to Sleep charts
2020-11-12 13:50:44 +01:00
Daniel Dakhno
79939b7339
Fossil Hybrid: can now delete notifications from watch
2020-11-12 12:35:29 +01:00
Daniel Dakhno
02b9cedcb7
Fossil Hybrid: fixed async action flag
2020-11-12 12:13:10 +01:00
Daniel Dakhno
b40e33f086
Fossil Hybrid: added "decline call" notification flag
2020-11-12 12:11:54 +01:00
Daniel Dakhno
fc1e74d154
Fossil Hybrid: fix "delete notification" to not cancel calls
2020-11-12 03:51:57 +01:00
Daniel Dakhno
39ed94de87
Fossil Hybrid: added unauthenticated, limited mode
2020-11-12 03:49:52 +01:00
Andreas Shimokawa
f157a2ac78
Amazfit GTS: Try to fix firmware flashing not working in newer firmwares
...
Reported in #2075
2020-11-11 12:51:58 +01:00
Andreas Shimokawa
cd8ac94a93
Mi Band 5: Whitelist FW 1.0.2.24
2020-11-11 09:48:50 +01:00
Andreas Shimokawa
9d6f9f7d57
Huami: Unify menu id lookup tables and simplify code
2020-11-10 21:56:00 +01:00
Andreas Shimokawa
5b55898059
Mi/Amazfit Band 5: Add support for setting/sorting shortcuts
2020-11-10 11:33:37 +01:00
pangwalla
c4eb1c0879
Support for Amazfit GTR 2 ( #2072 )
...
Merge branch 'master' into master
fixed GTR2 getActivitySampleSize override
Support for Amazfit GTR 2
Co-authored-by: Pangwalla <pangwalla@protonmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2072
2020-11-09 20:53:02 +01:00
Andreas Shimokawa
f178c478c9
Amazfit Bip: Also make shortcuts sortable
2020-11-07 22:48:34 +01:00
Andreas Shimokawa
d20e6516c8
Humai: Implement menu sorting for remaining devices (except Mi Band 2)
2020-11-07 22:48:34 +01:00
Andreas Shimokawa
8cb2fb980a
Ímplement sorting menu items for newer Huami devices
...
- Amazfit GTR/GTS
- Amazfit Bip S
- Mi Band 5/Amazfit Band 5
2020-11-07 22:48:34 +01:00
Andreas Shimokawa
e1f2e0c830
Experiment with a draggable sort list.
...
I left the non-preference related dslv code untouched and took it from here
https://github.com/sbolotovms/drag-sort-listview
(This is one of many forks, which had migrated android to androidx)
The base for the code in DragSortListPreferenceFragment.java and
DragSortListPreference.java comes from:
https://github.com/kd7uiy/drag-sort-listview
I heavily modiefied it moved it to androidx
2020-11-07 22:48:34 +01:00
vanous
4c39dceecd
Add minimum/maximum heart rate popup, fixes #1483
2020-11-01 23:58:54 +01:00
vanous
6960b10e5d
Add confirmation dialog to Find device, fixes #1330
2020-11-01 14:41:58 +01:00
vanous
329c47fff2
Add heart rate average to Activity and Sleep → Sleep
2020-11-01 11:06:59 +01:00
Daniel Dakhno
e8534e01f8
Fossil Hybrid: dynmically generate check byte
2020-10-31 12:40:20 +01:00
Daniel Dakhno
d8ade53cdf
Fossil Hybrid: fixed missing class
2020-10-30 04:25:11 +01:00
Daniel Dakhno
12e67312c7
Fossil Hybrid: auto-detect iv incrementor
2020-10-30 04:19:21 +01:00
Daniel Dakhno
f6a7435b7e
Fossil Hybrid: temporarely keep activity file after sync
2020-10-30 04:19:07 +01:00
Daniel Dakhno
6b1d2cab50
Fossil Hybrid: added device security version info
2020-10-30 03:38:10 +01:00
Daniel Dakhno
8e543d0b9c
Fossil Hybrid: code cleanup
2020-10-29 02:49:44 +01:00
Daniel Dakhno
8a87bd9700
Fossil Hybrid: added verbose decryption logging
2020-10-29 02:48:28 +01:00
Daniel Dakhno
c1352a7c3c
Fossil Hybrid: added app exec test code
2020-10-29 02:43:21 +01:00
Daniel Dakhno
0845d15ba2
Merge remote-tracking branch 'origin/master'
2020-10-29 02:43:01 +01:00
Daniel Dakhno
6850837a30
Fossil Hybrid: cleaned up handle handling
2020-10-29 02:42:52 +01:00
Daniel Dakhno
f11977597b
Fossil Hybrid: use GB.toast()
2020-10-28 21:42:12 +01:00
Daniel Dakhno
d14687388b
Fossil Hybrid: show warning on wrong key format
2020-10-28 21:42:12 +01:00
Andreas Shimokawa
1224cfeffc
Amazfit Bip S: unify shortcuts code with display items code
2020-10-28 00:12:37 +01:00
Andreas Shimokawa
50f99a5b59
Amazfit Bip S Lite: add new device type for the lite variant
...
See #2055
2020-10-27 12:56:27 +01:00
Andreas Shimokawa
f61c06630a
Fossil Hybrid HR: Only do a factory reset when really requested, not also on reboot.
2020-10-27 11:47:55 +01:00
vanous
b364029f82
Level up icons in Activity List. Improve empty record.
2020-10-27 09:20:32 +01:00