vanous
0a2920a5ec
Battery Info: add styled date range UI
2021-02-14 18:33:32 +01:00
vanous
cde018399a
add time span and select date
2021-02-13 23:28:16 +01:00
vanous
99830f5a84
flip and scale GPX canvas
2021-02-13 18:10:42 +01:00
Andreas Shimokawa
bf9b45f964
Charts: Also count steps for not worn samples
...
The Mi Band 5 also seems to display those steps
It could also be that the sample type is wrong in Gadgetbridge
2021-02-05 19:17:35 +01:00
vanous
3e04778696
initial battery level collector and simple chart
2021-02-04 21:21:38 +01:00
vanous
57fe621ba8
honor Imperial units settings in Widget, Activity list and Workouts, fixes #2041
2021-01-23 21:43:32 +01:00
vanous
0fd2de2bd3
show all eligeble devices in Widget Configuration Activity, fix #2170
2021-01-22 20:29:00 +01:00
vanous
198040c935
add UUID to to GPX with opentracks namespace
...
ensure that GPX has trackpoints
improve GPX track name if null
2021-01-17 00:07:55 +01:00
vanous
5c7254b7b8
adds a 'Delete files from export directory' to Data management
2021-01-10 23:39:38 +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
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
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
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
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
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
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
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
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
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
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
329c47fff2
Add heart rate average to Activity and Sleep → Sleep
2020-11-01 11:06:59 +01:00
vanous
b364029f82
Level up icons in Activity List. Improve empty record.
2020-10-27 09:20:32 +01:00
vanous
95c35deb90
Add version to About screen
2020-10-24 21:55:48 +02:00
vanous
4d42e169b9
Add GPS fragment to Sport Activity detail
...
add GPX parser
fix possible swiping issue after device rotation
use window background color for screenshots
2020-10-24 18:27:51 +02:00
vanous
f60ba212c6
Make Sports Activities list use Activity List style
2020-10-17 14:55:12 +02:00
vanous
e7b5053b13
Add Step length preference to About you
...
Add new distance icon
Distance in meters or km based on distance
Remove unnecessary definitions
Optimize new drawables
Map intensity to min steps
2020-10-16 21:07:57 +02:00
vanous
92407d3490
Fix trailing activity 0 duration
...
Hide intensity if not present in data
2020-10-16 21:07:34 +02:00
Daniel Dakhno
7ecb5543f7
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-hybrid-new-firmware
2020-10-14 02:02:00 +02:00
vanous
64d8504b7d
New item layout, icons, logic and defaults for daily activity list.
2020-10-14 01:52:27 +02:00
Daniel Dakhno
05a4c0ce68
Fossil HR: added long and double button presses
2020-10-13 03:06:05 +02:00
Andreas Shimokawa
0d49eaaf9e
Pebble: move canned message to per-device settings (including migration)
...
This also cleans up some useless preferencehandlers that only change summary by
using app:useSimpleSummaryProvider="true" for EditText
2020-10-13 00:27:22 +02:00
vanous
26f199a010
Remove testing reflection code trying to disable pull to refresh in Activity List
2020-10-11 18:24:36 +02:00
TaaviE
3b5f35f34a
Added PineTime (InfiniTime) Nordic DFU support
2020-10-11 19:16:31 +03:00
TaaviE
42b7dd6d2a
Renamed a few variables in FwAppInstallerActivity
2020-10-11 19:16:31 +03:00
vanous
46a1d2908a
Sharing Sports Activity improvements
2020-10-11 18:09:22 +02:00
opavlov
1ba454a89b
refactored settings to "per-device" according to wiki
2020-10-11 17:24:11 +03:00
opavlov
06a12300a1
added support for sony swr12
2020-10-11 17:24:11 +03:00
vanous
0b7d37c7eb
Improve Activity List processing
2020-10-11 09:40:15 +02:00
Yukai Li
6974a86b87
Lefun: Implement settings
2020-10-10 22:03:46 +02:00
vanous
bd90b59f92
Initial implementation of Activity list.
2020-10-10 07:19:42 +02:00
vanous
ac5e7608fc
Handle device null state when being disconnected
2020-09-28 09:49:08 +02:00
vanous
7371fb37c2
Add charts into Sports Activity Details. Improve pingpong icon.
2020-09-23 21:53:16 +02:00
vanous
db47992199
Re-do logo logic for AboutScreen to keep aspect ratio
2020-09-10 10:49:05 +02:00
vanous
1d51c58f15
Fix warnings and colors for AboutScreen
2020-09-09 23:26:46 +02:00
vanous
874b510784
Add more features to ActivitySummariesFilter
...
Add possibility to pick individual SportsItem items into filtered view
Add quick time range selector
add deviceFilter for devices that supportsActivityTracks
add baseAltitude
add average speed, calculated from from distance/active time
make Activity Details layout scrollable
2020-09-05 20:22:04 +02:00
vanous
4c1208400e
Ensure that Sports Activity Filter has correct first item. Make Sports Filter buttons follow default theme
2020-08-29 02:19:06 +02:00
TaaviE
6cd59fbd24
Refactored all pairing and bonding activities ( #1989 )
...
Fixed a few warnings
Refactored all bonding and bonding activities
Co-authored-by: TaaviE <taavi.eomae+github@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1989
2020-08-28 15:38:18 +02:00
TaaviE
c5daa28214
Optimized vector images ( #1996 )
...
Improved the screenshot vector image a bit to look more uniform with the rest
Improved the about activity a bit for Android 10+
Cleaned up and optimized all vector drawables
Co-authored-by: TaaviE <taavi.eomae@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1996
2020-08-28 13:21:21 +02:00
vanous
39a472216a
Better handling of end of summary items list
2020-08-26 21:12:54 +02:00
vanous
723bd6fb6e
Controllable backgroundColor to item view. Split lines Activity Kind and Activity Name Label to prevent overflow
2020-08-26 20:45:38 +02:00
Bot
40852d3641
Fixed a bunch of misspellings and formatting
2020-08-26 14:37:40 +03:00
TaaviE
7db3b68047
Fixed a bunch of warnings
2020-08-26 09:38:31 +02:00
vanous
34eee787d7
Add margins to AlertDialog.Builder
2020-08-24 13:50:10 +02:00
vanous
9b30369a88
Add edit Sport Summary Name. Add filtering by this name.
2020-08-24 00:09:10 +02:00
vanous
7b46a5e950
Tweak Sports Filter when a GBActivity now...
2020-08-23 13:01:54 +02:00
vanous
f8d22e9ec7
Make Filter be a normal activity. Fix s/m→m/km conversion
2020-08-23 00:04:23 +02:00
vanous
78745420ca
Make Sports Activity Detail data take full width
2020-08-23 00:04:23 +02:00
vanous
f05ad85f73
Make string values of summary data translatable
2020-08-22 10:31:32 +02:00
vanous
b236a6af16
Add Activity Summary Statistics Drawer
...
Move SummaryStatistics JSON Summary to own place
2020-08-21 23:51:46 +02:00
Andreas Shimokawa
f05ddd2d24
display swim style as string
2020-08-20 22:27:33 +02:00
vanous
03b45d1071
Add better Sport Activities Filering
2020-08-19 19:45:23 +02:00
Andreas Shimokawa
715fb67859
Do summary parsing on the fly if raw binary data is available
2020-08-18 10:39:44 +02:00
vanous
20faa23843
Add events forwarding for HUAMI Bip, MB3 ( #1980 )
...
Remove unneeded function call
Re-done to simplify
Add media actions
Rename function to make meaning clearer
Add events forwarding for HUAMI Bip, MB3
Co-authored-by: vanous <petr@linuks.cz>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1980
2020-08-16 22:07:55 +02:00
vanous
19ac94e138
Make alternate row color honor set theme
2020-08-16 20:45:03 +02:00
vanous
78cd8e55b7
Add back arrow ← to Sports Activity Detail
2020-08-15 14:54:24 +02:00
vanous
7cc4b16852
Animate on swipe when at end ranges of Sport Activity Detail data
2020-08-15 14:11:35 +02:00
vanous
ed5b4ac793
SwipingView of Sports Activity Detail ( #1977 )
...
Swipable view done
WIP. Basic POC.
Co-authored-by: vanous <petr@linuks.cz>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1977
2020-08-14 22:48:03 +02:00
vanous
f4bf457232
Add filter to Sports Activities
2020-08-12 07:36:53 +02:00
vanous
3bff745b38
Make icon long press to toggle raw/calculated data
2020-08-10 22:40:58 +02:00
vanous
f08b109deb
Finalized Sports view. Recalculate seconds to duration.
2020-08-10 18:23:16 +02:00
vanous
4a4362eec4
Use textViews. Remove groups from data.
2020-08-10 10:56:54 +02:00
vanous
bce85beb21
Use localized names and dates. Pass only needed data between activities.
...
Better display view. Cleaning up.
Add km/h and calculate speed to it.
Special casing calc not per key but per unit
solved min/maxPace, localized several missing labels.
totalStride is Total strides in m. Fix missing start_label
2020-08-09 21:56:31 +02:00
Andreas Shimokawa
c20810059d
Fix crash when opening GPX file, reformat code
2020-08-09 21:56:31 +02:00
vanous
c3887ddb86
minimum working version
2020-08-09 21:56:25 +02:00
vanous
7a46d39193
ActivityDetail with steps
2020-08-08 08:40:23 +02:00
TaaviE
fb70a07f64
Tried fixing a LineageOS quirk with regular BT scans
2020-08-02 23:59:42 +03:00
TaaviE
749cf91f63
Handled the potential case of the same scan finishing twice and canceling a running scan being displayed
2020-08-02 23:43:00 +03:00
TaaviE
83f3b8565e
Removed duplicate UI updates
2020-08-02 22:06:18 +03:00
TaaviE
d7ce49a2f3
Improved UX when Bluetooth is disabled mid-scan
2020-08-02 21:55:16 +03:00
TaaviE
9627360fac
Fixed an UI error when Bluetooth discovery starting fails
2020-08-02 21:23:14 +03:00
TaaviE
61c74e9b15
Made the scans time out nicely
2020-08-02 21:07:14 +03:00
TaaviE
498c0d42e2
Made sure to check if location permission has been given by the user for scanning
2020-08-02 21:07:14 +03:00
TaaviE
aa9abd4b61
Added a log message that might help with debugging in some cases
2020-08-02 21:07:14 +03:00
TaaviE
f526bbe632
Added an API version guard to the new type of BLE scanning
2020-08-02 21:07:14 +03:00
TaaviE
b76a8267b8
Added CompanionDeviceManager support, added target 29 support, refactored the scan display and UI.
2020-08-02 21:07:14 +03:00
TaaviE
f9dc625c5c
Printed a few rather fatal exceptions in case they happen for easier debugging ( #1946 )
...
Removed a few more occurrences of double logging
Removed double logging
Printed a few rather fatal exceptions in case they happen for easier debugging and a few other small cleanups
Co-authored-by: TaaviE <taavi.eomae+github@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1946
2020-08-02 10:55:06 +02:00
TaaviE
da529579f4
Made it possible to disable asking for a few permissions.
2020-08-01 17:27:26 +03:00
TaaviE
1ceaf48ba7
Only request ANSWER_PHONE_CALL above API 26
2020-08-01 17:27:15 +03:00
TaaviE
bb1b31bcb4
Made sure to check notification listener access even after first launch because not having it can cause issues
2020-08-01 17:27:15 +03:00
TaaviE
8da7a7aced
Added a checkbox to un-ignore bonded devices
2020-08-01 15:49:54 +02:00
Andreas Shimokawa
c735dd0dd4
fix compilation
2020-07-31 14:05:45 +02:00
115ek
58711ff2d2
TLW64: Add basic settings
...
* inactivity warnings
* activate display on lift
* timeformat
* TODO: screen timeout, find-my-device,...
2020-07-30 15:00:34 +02:00
TaaviE
629a3bcf63
Improved when and how the toast to grant permissions is displayed, won't request permissions that have been permanently disabled or denied by the system. No way to actually ask if the permission has been denied by the user.
2020-07-30 00:04:36 +02:00
TaaviE
22256030b5
Made items in the media receivers list more differentiable
2020-07-28 16:55:25 +02:00
TaaviE
1c2cd99efd
Made sure to request the permission to change ringer mode to silent
2020-07-27 21:21:19 +03:00
vanous
2496b40a88
Improve padding. Use better (i) icon. Add 'unlisted contributors'.
2020-07-12 10:38:56 +02:00
vanous
c1a8fb502c
Add About screen
2020-07-11 17:04:29 +02:00
TaaviE
d871b03f33
Added a safety measure against a weird internal crash when stopping a BLE scan
2020-06-17 08:47:39 +02:00
Zhong Jianxin
fc39221782
Amazfit Bip S: Support setting shortcuts
2020-05-14 10:05:49 +08:00
Andreas Shimokawa
fefcf2d2b9
ZeTime: Fix setting the watch language and make the setting accessible from the per-device configuration menu
...
This did not work at all before, it was supposed to take the language from
Gadgetbridge App settings or the phone's default settings, but nothing was ever
sent to the watch.
2020-05-05 00:34:59 +02:00
Andreas Shimokawa
fa2d954552
Add alarm title and description field to alarm configuation
...
Wire it up and enable for Fossil Hybrid HR
2020-04-24 10:39:32 +02:00
Andreas Shimokawa
a089e01433
Add title and description to Alarm table (currently unsued)
...
Includes migration script
Also bump version to 0.44.0 because of the previous Watch X merge
2020-04-24 00:31:04 +02:00
Andreas Shimokawa
da23026e8f
Merge remote-tracking branch 'mamucho/master'
2020-04-23 23:31:55 +02:00
mamutcho
7dab1cb0f7
Move settings to per device (gear icon)
...
Add missing files
2020-04-23 00:01:57 +03:00
Daniel Dakhno
18eec6b863
Fossil HR: raw activity dateien optional speichern
2020-04-22 01:27:06 +02:00
mamutcho
61da55e0de
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
...
Conflicts:
GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
2020-04-20 14:42:20 +03:00
Daniel Dakhno
19534cbae8
Fossil HR: added graphic settings handler
2020-04-12 03:57:13 +02:00
vanous
a1a010b4b4
Fix average calculation when scrolling between days
2020-04-11 14:42:37 +02:00
vanous
630c58c8f4
Edit Changelog
...
Do not count days with 0 steps into average/goal.
Add sleep to the 0 days not calculation.
Do not count days with 0 steps into average/goal.
2020-04-09 18:31:16 +02:00
Andreas Shimokawa
1a57c4db68
Amazift Bip Lite: Allow relaxing firmware checks to allow flashing of the regular Bip firmware (for the brave)
...
Closes #1819
2020-03-27 11:01:33 +01:00
mamutcho
c4ca247524
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
2020-03-22 19:42:08 +02:00
Andreas Shimokawa
101e2c6664
Fossil Hybrid HR: allow setting vibration strength
...
Also allow re-fetching of configuration again (it updates battery levels)
2020-03-20 17:14:00 +01:00
Andreas Shimokawa
159a937cab
Fossil Hybrid HR: Support button configuration in per-device settings
...
Related: #1751
2020-03-15 00:23:06 +01:00
mamutcho
10bf452017
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
...
Conflicts:
GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java
app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
app/src/main/res/values-bg/strings.xml
2020-03-13 19:08:34 +02:00
Andreas Shimokawa
1ccb7ab785
Fossil: Allow swiching off the device specific "Q" notification icon
2020-03-12 13:48:25 +01:00
Pauli Salmenrinne
8cfdd62eb4
FIX: Fix find-my-phone for android 10 with notifications.
2020-03-12 09:26:22 +01:00
cpfeiffer
136825fa9d
Do not connect to random (first) device on start
2020-02-26 21:15:30 +01:00
Andreas Shimokawa
fb996c3301
Merge branch 'master' into fossil-q-hr
2020-02-26 20:30:57 +01:00
Andreas Shimokawa
9a114f640b
Huami: Make experimental calendar sync feature optional
2020-02-24 14:19:06 +01:00
Andreas Shimokawa
d3ab597e8a
Merge branch 'master' into fossil-q-hr
2020-02-22 10:16:51 +01:00
Andrzej Surowiec
01ab7bcb54
Fix answering/rejecting calls on Android 9
2020-02-22 09:50:05 +01:00
Andreas Shimokawa
15a090b35e
Merge branch 'master' into fossil-q-hr
2020-02-05 10:59:26 +01:00
Andreas Shimokawa
3226d61ecd
Mi Band 4: Make high MTU support optional
...
Fixes #1766
2020-02-04 10:04:01 +01:00
TaaviE
68e746edff
Made it adding already paired devices work properly if they're not ignored
2020-02-03 20:24:55 +01:00
TaaviE
b01e703e84
Added a check to avoid indefinitely lasting scans
2020-01-31 07:01:04 +02:00
Andreas Shimokawa
1c91c037a8
Merge branch 'master' into fossil-q-hr
2020-01-29 17:22:21 +01:00
Dmitry Markin
10c9b07c69
Control alarm snooze mode on MiBand2
2020-01-12 12:02:04 +03:00
License Bot
d6fa5d0dd5
Update license headers
2020-01-09 10:44:32 +01:00
dakhnod
2acac2146e
auto connects to device on startup (mainly for testing)
2019-12-31 03:38:38 +01:00
vanous
50defa1eb6
Add broadcast sender/receiver to ConfigureAlarms/HuamiSupport
...
This is to prevent discrepancies if user edits alarms in Gadgetbridge
and also on the device at the same time.
2019-12-29 11:07:42 +01:00
Andreas Shimokawa
21eada4caa
Allow to set alarms to unused when long tapping
...
This helps clearing up a cluttered alarms list on devices like the Mi Band 4
Difference between disabling and setting to usused:
Unsused alarms cant be enabled from the Band, disabled can.
Closes #1747
2019-12-24 01:27:57 +01:00
mamutcho
0d8428437c
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
2019-12-15 18:28:19 +02:00
Andreas Shimokawa
72ffbca2ff
Make "reserve alarm for calender" per-device and only allow for Mi Band 1/2
...
This avoids a lot of bugs and confision regarding alarms
2019-12-14 23:48:02 +01:00
mamutcho
be8cac2c6f
Merge branch 'master' of https://github.com/mamutcho/Gadgetbridge
2019-12-12 19:27:56 +02:00
Andreas Shimokawa
b9d3ec6df3
Make disabling new BLE scanning an option in preference
...
It was disabled in master, but not in the Fossil Q branch, now both is possible
This also reverts ca9761c336
which disabled classic BT scanning
2019-12-07 22:38:30 +01:00
License Bot
1dc8c26e2a
Update license headers
2019-12-06 22:51:43 +01:00
dakhnod
f4a0f0ce8f
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-12-04 00:48:26 +01:00
FYG_license_bot_ignore_me
8e5c4b4602
Update license headers
2019-11-23 21:53:22 +01:00
mamutcho
e3f838afa0
Bump version ot 0.39
...
Redesign Settings page
2019-11-19 20:51:37 +02:00
Mamut
aefe7017f0
Merge pull request #1 from Freeyourgadget/master
...
Version to 0.39.0
2019-11-19 12:26:33 +02:00
mamutcho
be47541a5e
Add new features
...
- Inactivity reminder
- Missed call reminder
- Watch language
2019-11-17 14:33:26 +02:00
Daniel Dakhno
7f5c432b82
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-11-17 01:13:00 +01:00
Andreas Shimokawa
25bb16b0c3
Make button action setting per-device, enable for amazfip bip
...
TODO:
- preference migration
- support vibration on bip
2019-11-14 12:33:36 +01:00
Daniel Dakhno
63b4ffe555
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-fossil-api
2019-11-14 04:58:32 +01:00
mamutcho
24439008ab
Add watch power mode and DND
2019-11-10 23:15:13 +02:00
mamutcho
3a2b718f09
Blood Pressure calibration
2019-11-09 22:16:10 +02:00
vanous
53ce25a30c
Add Set Activity Fetch Time to debug to set lastSyncTimeMillis
2019-11-04 21:59:29 +01:00
vanous
c1d024876d
Add forward/backward buttons to charts
2019-11-04 20:42:59 +01:00
vanous
71b393932f
Add switch to set old/new style of sleep detection range
2019-10-26 10:39:15 +02:00
Daniel Dakhno
7710b9ea2a
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-abstraction
2019-10-25 14:35:05 +02:00
vanous
31ce36e335
Add alternative color to heartrate in charts
2019-10-24 22:59:52 +02:00
vanous
21525adaae
Add uncommited second occurance of the same
2019-10-21 21:12:07 +02:00
vanous
7ed2c26b2f
Catch crash during ChangeLog displaying
2019-10-21 21:08:09 +02:00
dakhnod
b6c744c8c6
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-10-19 23:55:55 +02:00
vanous
5c0c5ed952
Check for non empty list of sleep sessions
2019-10-17 14:35:45 +02:00
vanous
b5e3374a9e
Limit sleep charts range
2019-10-17 14:35:45 +02:00
Andreas Shimokawa
074994d24b
Merge branch 'master' into fossil-q-hybrid
2019-10-12 20:47:19 +02:00
Andreas Shimokawa
7b5e333601
Skip service scan if supported device could be recognized without uuids during discovery
2019-10-12 20:15:09 +02:00
Andreas Shimokawa
4bf37ea70f
Mi Band 4/Amazfit Bip Lite: Display a toast and do not try to pair if there was no auth key supplied
2019-10-12 19:44:45 +02:00
Cre3per
c4f4f5081d
added vibrator to FindPhoneActivity.
...
added device settings for find phone.
makibes hr3 now uses GBDeviceEventFindPhone.
2019-10-12 12:44:38 +02:00
Cre3per
81aa66c2d4
removed todo.
...
fixed typo.
2019-10-12 12:44:38 +02:00
dakhnod
a2a0bc08dd
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-10-11 22:35:50 +02:00
Daniel Dakhno
ca9761c336
adjusted DiscoveryActivity to use new scan
2019-10-10 02:09:23 +02:00
Andreas Shimokawa
b5e9727dcd
Make some more settings per-device settings
...
- All ID115 settings migrated, allowing removal from settings activity
- All timeformat settings for all devices migrated
- All wrist location settings for all devices migrated (now you can have a mi band 3 on the left wrist and a bip on the right wrist :P)
Also deduplicated some strings from zetime/generic preferences
2019-10-05 22:35:30 +02:00
dakhnod
ea1653d616
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-10-05 19:09:07 +02:00
Andreas Shimokawa
21a287f6b1
Makibes HR3: Make settings per-device
...
Also so some minor cleanups on Makibes HR3 code
2019-10-02 23:45:19 +02:00
dakhnod
b20963348d
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-09-25 00:22:57 +02:00
Q-er
371ac276a5
Allow multiple sleep sessions per day
2019-09-22 21:34:03 +02:00
Andreas Shimokawa
744848fae7
register a fake PhoneStateListener on startup once, so that Lineage OS privacy guard asks for permissions
...
Closes #1649
2019-09-21 10:07:58 +02:00
cpfeiffer
17f24c06f8
Fix some LGTM issues
2019-09-19 23:18:17 +02:00
Andreas Shimokawa
e491a8c21d
no not refresh whole activity when deciding whether fab should be shown or not
2019-09-17 14:02:35 +02:00
vanous
29375be3e2
Refresh ControlCenterv2 on menu exit
2019-09-17 13:25:57 +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
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
vanous
957d441859
Add Status and Alarms widget
...
Squashed commits from #1604
2019-09-01 21:35:53 +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
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
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
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
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
57a235742d
Properly disable new ble scanning for testing
...
(inverted logic committed accidentially)
2019-08-03 23:40:07 +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
dakhnod
9d251d99d2
Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid
2019-07-23 20:30:18 +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
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
root
09f6cada87
Fossil Q hybrid and Skagen support added
...
Opening this branch for the second time inorder to purge certain files form the repo
2019-07-14 19:45:40 +02:00
Andreas Shimokawa
d779310962
Move "activate display on lift wrist" and "rotate wrist to switch info" to per-device settings
...
"activate display on lift wrist" for Mi Band 2/3, Cor, Bip
"rotate wrist" only for Mi Band 2
2019-06-05 16:00:18 +02:00
Andreas Shimokawa
16090f0e21
Move fake device offset to Mi Band 1 preferences, remove support for other devices
...
Reasons for removal:
- I doubt we honored the offset correctly for new features anyway that are available on newer devices
- Newer devices have a display always displaying the wrong time
2019-06-05 14:11:44 +02:00
Andreas Shimokawa
3aa36324c1
depuplicate code in the same fashion as in ZeTime preferences
2019-06-05 12:16:10 +02:00
Andreas Shimokawa
93f288b936
Move "Do not disturb" settings from Mi Band / Amazfit settings to per-device settings (Mi Band 2 and Mi Band 3 only)
2019-05-24 23:47:57 +02:00
Andreas Shimokawa
3440485a51
Mi Band 2: move settings to per-device settings
2019-05-23 21:33:35 +02:00
Andreas Shimokawa
038f101a12
Migrate more settings to per-device settings
...
Also add icons.
2019-05-22 10:49:59 +02:00
Andreas Shimokawa
9bfef4cf4f
Make per-device settings more versatile, move more settings
...
This allows to construct per-device settings by device type very easily
device coordinators just do the following to declare which setting they support,
the settings activity is then composed at runtime.
@Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
return new int[]{
R.xml.devicesettings_miband3,
R.xml.devicesettings_swipeunlock,
R.xml.devicesettings_pairingkey
};
}
2019-05-22 00:42:22 +02:00
Andreas Shimokawa
08e7d728c2
Huami: Migrate some settings to device specific settings
...
- Migrate language setting
- Migrate menu items setting
- Migrate lastsync timestamp from prefixed global shared prefercence
All settings should be automatically be converted (e.g. Amazfit Bip settings to all paired Amazfit Bip devices) and then deleted.
Cor Settings aleady completely vanished from the global settings menu.
When migration is done we will have a much cleaner settings menu. Will also remove confusion that some Cor settings have to be done in Bip settings.
2019-05-20 16:36:06 +02:00
Andreas Shimokawa
34b4943918
Also export and import device specific preference files
2019-05-09 14:55:37 +02:00
Andreas Shimokawa
5ecf3cadc8
Database Management Activity: Also remove "Delete Legacy Database" title when there is no legacy database.
...
The title caused me to press the button below and killing all my data from the last two years
2019-05-09 13:38:14 +02:00
Andreas Shimokawa
f01c9414f5
fix a few warnings
2019-04-21 22:08:14 +02:00
Andreas Shimokawa
db48707764
Add a device specific settings activity, currently used for setting the auth key for Amazfit Bip/Cor
...
When connecting to a new device, a random key gets generated, which can be
looked up from the device specific settings (accessible via the gear icon in
the device card in the main activity). Old devices keep their 0123456789@ABCDE
key, they have to be re-paired to change that.
During pairing, long-pressing the device candidate in the discovery activity
will also start the device specific settings activity, where the auth key
can be set manually priror to pairing. This is usefull to keep the ability to
pair one device with multiple android devices.
Fixes #1308
2019-04-21 21:25:33 +02:00
License Bot
9aadb2f2fd
Update license headers
2019-04-21 18:53:10 +02:00
cpfeiffer
c9f1c110b0
Merge remote-tracking branch 'github/pr/1292'
2019-03-04 22:10:23 +01:00
cpfeiffer
e6ebe8b2bd
Don't crash on share when log file does not exist ( #1444 )
2019-02-28 22:04:05 +01:00
cpfeiffer
f3a7861fdb
Fix some lgtm warnings
2019-02-28 21:57:45 +01:00
Sebastian Kranz
6a04c78b0e
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into zetime
2019-02-20 14:24:59 +01:00
License Bot
beedb653e6
Update license headers
2019-02-13 20:43:31 +01:00
Andreas Shimokawa
c66fade081
Amazfit Bip: Support disconnect notifications
...
Might also work with Cor, did not work with Mi Band 3
2019-02-13 13:06:42 +01:00
Andreas Shimokawa
fd15478a7a
Fix alarm corruption after user configured an alarm further down the list, leaving an unconfigured alarm in between configured alarms
...
This was not fixable though the UI, this commit also heals already corrupted configurations
Fixes #1419
2019-02-09 00:08:07 +01:00
Daniele Gobbetti
75d3dffb14
Migrate to androidx support libraries and bump compile SDK version
...
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00
abettenburg
86e92130d2
Updated PullRequest with recommended improvements
2019-01-12 10:00:33 +01:00
abettenburg
51399066a4
Merge remote-tracking branch 'upstream/master' into black_whitelist_for_notifications
...
# Conflicts:
# app/src/main/res/values/strings.xml
2019-01-12 09:55:53 +01:00
cpfeiffer
903b50c2c5
Improved DB-based alarms
...
- got rid of GBAlarm
- added migration for prefs-based alarms
- various cleanups
2019-01-07 01:15:49 +01:00
Andreas Shimokawa
a354bdca30
try to satisfy lgtm
2018-12-18 10:26:29 +01:00
Andreas Shimokawa
b020d59f54
Implement factory reset feature in debug activity
...
Implemented for Mi Band 1/2/3, Cor, Bip
Could be implemented for Pebble by deleting all blobdbs etc
Related to #109
2018-12-16 16:06:12 +01:00
AndrewBedscastle
f90ba76fc0
No more hardcoded strings
...
Save and load packageName as lowercase String
Do not save empty strings as Notification Filter Entry
2018-12-06 15:11:50 +01:00
abettenburg
d6190e6e59
Apps Notification can now be configured to filter notification content based on black- and whitelists
...
Go to notification blacklist, allow an app if blacklisted, than configure it's behavior with the menu icon on the right hand side.
Should be pretty much self explanatory.
Database Scheme raised to 20
2018-12-03 09:48:16 +01:00
Andreas Shimokawa
740cf103f6
Initial support for per-device alarms and raising the number of available alarms
...
TODO:
- Fix alarm widget (how can we get the deviceId?)
- Get rid of GBAlarm in favour of DAO generated Alarm class
- Find better defaults
- Bonus: migrate old preferece based shared settings
2018-11-24 12:16:47 +01:00
cpfeiffer
5644ae5925
Display measured hr value in Debug activity + cleanup
...
Fixes #1320
2018-11-05 23:27:29 +01:00
Andreas Shimokawa
22de76620d
Debug: Add button to send a PebbleKit notification
2018-11-01 15:04:16 +01:00
Daniele Gobbetti
eede85a9c9
Various improvements and bugfixes to notification handling
...
Prevent duplicate notifications with a dedicated data structure (not reusing
the anti-burst one) #1062 , #657
Pebble: Forward the actions attached to notifications (not only reply)
inspired by the work of dnastase #705
2018-10-31 21:47:12 +01:00
Sebastian Kranz
6b82340093
Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into zetime
2018-10-01 06:39:08 +02:00
cpfeiffer
cfddba0e4d
Remove unused field and redundant casts
2018-09-17 23:02:18 +02:00
cpfeiffer
934f36f45a
Use ActivityUser.defaultUserStepsGoal instead of hardcoded values
...
ActivityUser has room for improvement, though.
2018-09-16 20:49:00 +02:00
Carsten Pfeiffer
226ae54ae6
Merge pull request #1265 from elagin/live_activity_2
...
Enhancement LiveActivityFragment (2)
2018-09-16 20:43:59 +02:00
Pavel
62e080d5ac
Update LiveActivityFragment.java
...
I'm sorry, I wanted to add entry if > min HR
2018-09-16 20:35:28 +03:00
cpfeiffer
5028458fe8
Fix some static analysis warnings
2018-09-16 13:54:56 +02:00
cpfeiffer
f142003f09
Avoid boxing
2018-09-16 00:12:40 +02:00
cpfeiffer
8aad6cd620
Avoid autoboxing, remove redundant cast
2018-09-15 23:51:51 +02:00
Sebastian Kranz
6617c45fec
Add setting heart rate alarm values. Make the settings of the wearside and screen on duration interactive - give them their own activity. Also make the auto heart rate measurement work.
2018-09-13 14:55:38 +02:00
Pavel Elagin
e85257b545
Show current / max heart rate. Ignore heart rate < user settings. Invisible button bar into LiveActivity. Auto scale totalStepsChart. Fix time x axis history chart. Draw total and per minute steps. Set limit on per minute chart by user settings.
2018-09-13 12:51:52 +03:00
cpfeiffer
aee0e54d05
Handle possible negative steps values
2018-09-11 23:08:29 +02:00
cpfeiffer
fbcd2840ca
No need to call method twice
2018-09-11 23:04:18 +02:00
cpfeiffer
88ad6cf0e0
Improve balance handling
2018-09-10 23:41:01 +02:00
Pavel Elagin
4592d35cc6
Calculation and display of weekly balance by steps and time of sleep.
2018-09-10 23:41:01 +02:00
Johannes Tysiak
d4ea5dfd44
Fix caller ID for incoming calls on Android 9
...
Fixes #1252
2018-09-05 20:41:01 +02:00
Dikay900
a844db7927
do not use synchonized singleton for HeartRateUtils
2018-09-02 12:59:38 +02:00
Dikay900
64da085942
make heart rate values configurable and use singleton for heartrateutils
...
to listen for preference changes
2018-09-02 12:57:52 +02:00
Dikay900
71447d0a8f
remove incorrect data <10 from the graphs
2018-09-01 19:28:20 +02:00
License Bot
696653eabf
Update contributors list and license headers.
2018-08-29 21:30:23 +02:00
Pavel Elagin
6904a62d41
Add share log file. Issue #1146
2018-08-28 21:50:12 +02:00
José Rebelo
9fda67b297
Mi Band 3: Night Mode
2018-08-27 22:54:37 +02:00
cpfeiffer
0b63fa1c59
Remove some (now) unnecessary casts
2018-08-17 00:13:38 +02:00
cpfeiffer
0145013597
Add some @Nullable
2018-08-17 00:13:38 +02:00
Carsten Pfeiffer
26fcb3cbbb
Merge pull request #1212 from elagin/legend_wordwrap_center
...
Enable word wrap and set center horizontal alignment for legend into …
2018-08-16 23:58:00 +02:00
Pavel Elagin
354ab79285
Display start and end sleep. #164
2018-08-16 17:59:56 +03:00
Pavel Elagin
65d36d2c81
Enable word wrap and set center horizontal alignment for legend into ActivitySleepChart and WeekSleepChart
2018-08-15 18:03:32 +03:00
José Rebelo
470efa3e51
Mi Band 3: Change display items
2018-08-12 00:00:38 +02:00
Pavel Elagin
76d704cb04
Misprints
2018-08-10 00:00:12 +02:00
José Rebelo
338251597b
Mi Band 3: Band screen unlock
2018-08-09 23:41:25 +02:00
cpfeiffer
e15afaab2f
Probe connected devices first for firmware installation
2018-08-06 23:13:59 +02:00
Andreas Shimokawa
cc7f6d7263
More Huami refactoring
...
- Rename MiBand2Service to HuamiService
- Move preferences around (Mi Band 2 has its own device specific settings now)
- Fix Cor menu items not syncing immediately in settings
- Try to support settings menu items on Mi Band 3 (buggy, disabled code for now)
2018-08-02 10:55:30 +02:00
Daniele Gobbetti
a5dd88df53
Fix discovery on devices with Android version < Lollipop
...
also reduce the amount of lines logged in discovery activity.
2018-07-22 16:14:36 +02:00
boun
11c545362a
Do not crash inside the emulator ( #1150 )
...
As there is no bluetooth support in the emulator
2018-07-12 18:25:18 +02:00
jonnsoft
09a36aa5e7
MiBand3 pairing fix
...
(cherry picked from commit 3656ed9648b28475c35764da8a5cbeb420cfc307)
2018-07-09 22:56:16 +02:00
cpfeiffer
f2ff1991da
Comment out chatty debug output
2018-07-09 22:55:20 +02:00
Martin
91cbdfde10
added time limited on auto-fetch, and removed the creation of multiple autoFetchReceivers
2018-07-01 22:57:48 +02:00
Konrad Iturbe
0f38c9a30e
Add RomanPort's AppStore Endpoint ( #1126 )
2018-06-27 09:02:55 +02:00
License Bot
225a600aed
Update license headers
2018-06-25 18:35:46 +02:00
Daniele Gobbetti
b81de63b30
Use checkboxes for notification and pebblemsg blacklist
...
also support dark theme and add a menu entry for accessing blacklist functionality
2018-06-19 18:26:06 +02:00
Daniele Gobbetti
d55d551943
Add overflow menu to blacklist and whitelist all installed applications
...
Fixes #679
2018-06-18 21:29:12 +02:00
Daniele Gobbetti
2f4c9ef0d9
Keep the embossed logo visible behind the device cards.
2018-06-18 20:27:38 +02:00
Daniele Gobbetti
3c00332a77
Always stop BT/BTLE discovery when exiting the Discovery Activity
...
Hopefully solves the leaks
2018-06-18 20:26:28 +02:00
Andreas Shimokawa
3b25181a32
Amazfit Bip: allow enabling shortcuts (weather, Alipay)
2018-05-15 23:12:18 +02:00
Daniele Gobbetti
fd664b9c67
Add proper mime type to shared gpx files
...
This prevents apps to show up in the intent chooser that do not know how
to deal with gpx files (e.g. Conversations)
2018-04-27 21:00:38 +02:00
Andreas Shimokawa
e1ef2455dc
Amazfit Bip: allow to set displayed menu item in firmware >=0.1.1.14
...
NOTE:
- You will have to be connected while doing the changes in preferences (FIXME)
- It might not work at all since I did not test after the latest changes :P
2018-04-27 09:28:33 +02:00
Daniele Gobbetti
8f6d287592
Amazfit Bip: add option to reset the last fetched activity (timestamp)
...
Show a datepicker to reset the date after which the next activity will be fetched.
Also add .gpx extension to fetched activity track (if present) and make
the menu entries translatable.
Close #1057
2018-04-12 22:11:58 +02:00
Daniele Gobbetti
5af353d6dc
Amazfit Bip: limit the activities to the currently selected device in Control Center
...
Also don't reverse the results, but sort in the query
2018-04-07 10:16:36 +02:00
Taavi
b1e337d9b7
Update AndroidManifest.xml ( #1050 )
...
Request the MEDIA_CONTENT_CONTROL permission
Should fix a crash on Samsung Galaxy S8+ (dream2qltesq), Android 8.0 due to a missing required permission
2018-04-07 00:24:38 +02:00
Daniele Gobbetti
74dcec730c
Amazfit Bip: implement deletion and select all actions
...
Also add white-on-black icons for all the actions
2018-04-05 22:41:03 +02:00
Daniele Gobbetti
80addd3454
Amazfit Bip: Add Contextual Action Bar and long press to select
...
Change metaphor from long-press-to-contextual-menu to long-press-to-select
The multiple deletion is not functional, the share menu works
2018-04-04 21:38:27 +02:00
Daniele Gobbetti
4f3a0be897
Amazfit Bip: add FloatingActionButton to initiate activities fetching
...
The swipe to refresh still works for the time being
2018-04-02 21:22:28 +02:00
Daniele Gobbetti
27caa08a1b
Amazfit Bip: do not export GPX tracks if there is no point in the track
...
The approach ignores the activity types and only uses the presence of
valid lon/lan points in the track to create the GPX file or not.
2018-04-02 18:42:08 +02:00
Andreas Shimokawa
12ca479439
Amazfit Bip: Various improvements to GPS track fetching
...
- stop refreshing state of swipe layout and refresh list after fetching
- allow fetching when device gets connected while being inside the activity
(#952 )
2018-04-02 10:15:26 +02:00
TaaviE
08feaf30e1
Fixed a bunch of misspells.
2018-03-31 17:31:48 +02:00
Andreas Shimokawa
29a05f1d8f
refactor onFetchActivityData() into onFetchRecordedData(dataTypes) to make it more generic
...
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P
Also fix some android studio warnings on the go...
2018-03-31 16:21:25 +02:00
Andreas Shimokawa
c493df2423
Merge branch 'bip-wip'
2018-03-31 11:31:03 +02:00
Andreas Shimokawa
4e496cf2af
Fix warnings in DiscoveryActivity and fix a potential NPE ( fixes #1048 )
2018-03-30 15:04:53 +02:00
Andreas Shimokawa
66bb0bd81b
Merge branch 'master' into bip-wip
2018-03-27 11:09:59 +02:00
cpfeiffer
d2c952ffa5
Improvements to the singleton pattern, better encapsulate fields
2018-03-18 12:59:32 +01:00
Daniele Gobbetti
ec1f4505bd
Pebble: prevent crashing when the ExternalPebbleJS Activity was not running
...
when receiving configuration data from the external browser.
Parse the passed data to load the correct watchface javascript, and ensure
the currently connected device is a Pebble (and try to reconnect if there
is no device connected, as a bonus)
2018-03-17 18:50:53 +01:00
Daniele Gobbetti
3e903362e6
Explicitly ask for RECEIVE_SMS permission at startup.
...
Should fix #1025
2018-03-17 15:58:44 +01:00
Andreas Shimokawa
a8fdcb50f3
fix bad merge from master
2018-03-13 21:17:14 +01:00
Andreas Shimokawa
3d3cc1f40c
Merge branch 'master' into bip-wip
2018-03-13 17:27:18 +01:00
Andreas Shimokawa
0ea5c3dee1
Charts: Ignore heart rate data if sample indicates that the device was not worn
...
Closes #1005
2018-02-26 22:06:56 +01:00
License Bot
238bacde9f
Update license headers
2018-02-26 14:27:33 +01:00
Andreas Shimokawa
e48885df7d
Merge branch 'master' into bip-wip
2018-02-15 23:38:06 +01:00
Daniele Gobbetti
e28333fe6e
Fixes to make the application run on Oreo
...
- tested on Oreo 8.1
this commit includes changes cherry picked from 3b6da66643
2018-02-14 21:35:22 +01:00
cpfeiffer
78b50e82fa
Fix crash in settings activity with export location
...
The way this works will never be a fully working solution, because uris are
*not supposed* to be resolved to a filesystem path. So while this may work
right now, it will most probably fail in the future, with other content providers.
See e.g. https://github.com/iPaulPro/aFileChooser/issues where this code originally came from
(via Stackoverflow).
We won't crash anymore, but we won't support certain content providers. In the long run, we
should search for the proper solution.
Closes #982
2018-02-11 14:32:21 +01:00
Felix Konstantin Maurer
296dfe2f17
Fix conversion from String to Integer
2018-01-24 22:01:12 +01:00
Andreas Shimokawa
1349a1c7da
Merge branch 'master' into bip-wip
2018-01-22 08:57:01 +01:00
cpfeiffer
da5d1e3685
Trying to simplify ExternalPebbleJSActivity#onCreate() a bit
...
(by splitting into separate methods)
2018-01-14 00:20:13 +01:00
cpfeiffer
9ee1aa87e8
Move some methods to clarify responsibilities and simplify some things
2018-01-13 21:58:40 +01:00
cpfeiffer
e159a5dde3
Cleanup, deduplication, null-handling fixes
2018-01-13 21:08:51 +01:00
Andreas Shimokawa
c420f2ce93
Amazfit Bip: implement find phone feature
...
This probably also works with Amazfit Cor
Closes #887
2018-01-13 18:46:21 +01:00
Felix Konstantin Maurer
a0ee35fa4c
Move getFilePath to appropriate location
2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
559cd557c2
Permissions must be persistet to be reused after boot
2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
1477235fa2
Clean preferences code
2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
58e504e299
Improve code, add notification
2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
254afafa3e
First try at periodic db export
2018-01-09 22:41:27 +01:00
Andreas Shimokawa
6f68c8adde
Merge branch 'master' into bip-wip
2018-01-04 12:09:57 +01:00
cpfeiffer
b9f19970df
Small safety measure against null device
2018-01-04 00:12:59 +01:00
Andreas Shimokawa
7e2f895001
Merge branch 'master' into bip-wip
2017-12-17 00:24:48 +01:00
Andreas Shimokawa
1752b1b51e
fix cm/lineage weather not updating after changing location
2017-12-12 22:36:15 +01:00
Andreas Shimokawa
bfceaf9cc9
Merge branch 'master' into bip-wip
2017-12-11 19:30:54 +01:00
Andreas Shimokawa
f0ac296492
Initial support for cyanogenmod/lineage weather provider
...
TODO:
- also reconstruct json for Pebble background js fake replies
- find a better location for settings
- interatively display candidates when looking up location
- grey out setting on non-cm/los devices
2017-12-11 19:09:37 +01:00
Andreas Shimokawa
24f98504b0
Amazfit Bip: when deleting activites, delete the correct one
2017-11-05 00:20:26 +01:00
Andreas Shimokawa
640e7f0abf
Merge branch 'master' into bip-wip
2017-11-03 23:27:58 +01:00
cpfeiffer
9e79eee707
Bip wip: fix position -> item mapping
2017-11-03 22:04:01 +01:00
cpfeiffer
23b18abfe8
Avoid potential NPE
2017-11-03 22:01:11 +01:00
Daniele Gobbetti
331ca6a47e
Merge branch 'master' into bip-wip
2017-11-01 22:12:13 +01:00
Daniele Gobbetti
e7839f1c39
Replace the Combined Charts with simple Line Charts
...
Fixes #808
The datasets had to be separed in order to fill the area below each line with the right color.
2017-11-01 17:35:05 +01:00
Daniele Gobbetti
98b04dd2fc
Allow disabling left/right swipe on the graphs
...
Fixes #860
Added preference to control this option
Swiping down will still toggle a sync of the data from the device (if connected) in any case
2017-11-01 09:07:01 +01:00
cpfeiffer
f5318287c4
WIP: Bip GPS fetching, parsing, exporting
...
Also adjust Mi2 date/time sending wrt DST offsets
2017-10-31 23:16:39 +01:00
cpfeiffer
eac8f5f8c7
Extract isValidHeartRate() method to HeartRateUtils
2017-10-31 23:16:39 +01:00
Andreas Shimokawa
6603b3fa05
Merge branch 'background-javascript'
2017-10-16 23:06:36 +02:00
License Bot
8f06e36c00
Update license headers
2017-10-16 09:38:02 +02:00
Daniele Gobbetti
c4f36d1202
Pebble: background webview, address (most of) review comments
2017-10-13 21:57:22 +02:00
Andreas Shimokawa
49bebc3440
Merge branch 'master' into background-javascript
2017-10-01 23:36:22 +02:00
Andreas Shimokawa
6f358ff722
fix measurement system summary value not being updated
2017-09-30 23:36:20 +02:00
Andreas Shimokawa
6d8ffad55c
Call onSetConfiguration() in listener if measurement system gets changed in preferences
...
(And implement onSetConfiguration() for HPlus)
2017-09-30 22:45:45 +02:00
Andreas Shimokawa
0ffa2ce45a
move up measuerement system from hplus to global preferences
2017-09-29 12:33:08 +02:00
cpfeiffer
0fd6064ab6
Just a single method rename, to make it more clear
2017-09-25 23:00:39 +02:00
Daniele Gobbetti
e8ae47de79
Pebble: Make background JS support toggle-able
...
- Add preference to enable background JS (default disabled)
- Remove the dummy activity used to create the webview, use ExternalPebbleJSActivity instead
- Add layout for legacy configuration, used if background JS is not enabled
- Create the view upon connecting, not when launching the application
- Remove the generic helpers used to find out if any device would need the background webview
- Drastic refactoring of WebviewSingleton moving internal classes in a new package "webview" in service/devices/pebble
2017-09-25 17:12:35 +02:00
Daniele Gobbetti
af6271a428
Merge branch 'master' into background-javascript
2017-09-25 11:21:11 +02:00
Frank Slezak
6ec1555178
Add support for dynamic Pebble background colors ( #819 )
...
Pebble: Add support for dynamic Pebble background colors
- Add a couple additional icon types
- Add Lighthouse (currently unused)
- Add Transit (public transportation app)
- Tweak the colors on existing icon types
- Implement logic to grab primary (vibrant) color from app logo
- The color will be used when displaying a notification for an app
that does not have any configs bound to it.
- Alter NotificationType to support a color (named pebbleColor)
- Alter the Pebble notification poster to listen to the color from
the notification
- Alter the DeviceCommunicationService to allow for color passthrough.
- Add logic to convert HEX or Integer representations of RGB888 colors
to Pebble RGB222 format.
- make the package name retrieved lowercase.
Fixes : #815
2017-09-19 13:24:31 +02:00
Andreas Shimokawa
99d873a178
Merge branch 'master' into background-javascript
2017-09-13 21:51:55 +02:00
License Bot
a10fc8ad4e
Update license headers
2017-09-12 12:39:15 +02:00
Andreas Shimokawa
5cd00ccbb5
Fix language switching for good
...
Maybe
:D
Fixes #802
2017-09-07 23:26:53 +02:00
Daniele Gobbetti
bb962001a5
Merge branch 'master' into background-javascript
...
# Conflicts:
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java
2017-09-03 16:49:27 +02:00
cpfeiffer
24797c7dd7
Make AbstractGBActivity abstract :-)
2017-09-03 10:48:14 +02:00
cpfeiffer
962720145e
Fix custom language being lost for newly created activities
...
So we do need to set the language both on change and onCreate()
For some reason, the title bar of the SettingsActivity is not updated on recreate().
Closes #787
2017-09-03 01:04:34 +02:00
Andreas Shimokawa
74652397dd
Merge branch 'master' into background-javascript
2017-08-28 00:35:28 +02:00
Andreas Shimokawa
1ff8fbac55
switch speed zones and live activity tabs
...
(makes it easier, since live activity is not for all devices9
2017-08-27 22:00:28 +02:00
Daniele Gobbetti
41feb008a7
Various style fixes
...
The top axis had the default color and was not visible with dark theme.
Enabled granularity of 1 to avoid fractions of steps being shown on the axis.
2017-08-27 17:26:24 +02:00
Andreas Shimokawa
b4639b9062
Speed Zones Chart: remove unused legend code
2017-08-27 00:04:08 +02:00
Andreas Shimokawa
6fb0a977fc
rename StatsChartFragment to SpeedZonesFragment
2017-08-26 23:55:11 +02:00
Vebryn
ea6457c359
fix building error
2017-08-26 23:36:59 +02:00
Vebryn
a61cbddb5d
simplifying speed zones and re-enabling
2017-08-26 23:35:16 +02:00
License Bot
15f4ce2869
Update license headers
2017-08-25 11:25:01 +02:00
Andreas Shimokawa
f4e11c8cb3
Merge branch 'master' into background-javascript
2017-08-22 20:13:20 +02:00
Daniele Gobbetti
c05e5f15ab
Add link to liberapay.com in the main drawer.
...
/cc #14
2017-08-18 21:51:12 +02:00
Daniele Gobbetti
d00b5a5d5d
Merge branch 'master' into background-javascript
2017-08-18 12:15:01 +02:00
Daniele Gobbetti
8cce2d1362
Pebble: allow to blacklist certain calendars
...
As requested in #736 , this adds an entry in the settings menu that allows to blacklist certain calendars.
To avoid confusion, all the former blacklist methods and fields have been renamed to apps_blacklist. The new entries are called calendars_blacklist.
Importing the settings has not been tested with the current changes.
Closes #736
Future improvements TODO: The new setting lives in the Pebble section, i believe in the future the blackslist functionality should be centralized and put in the sidebar.
2017-08-18 10:34:42 +02:00
cpfeiffer
6b1ba4d161
Don't duplicate colors, use the theme #757
2017-08-14 21:59:49 +02:00
Andreas Shimokawa
4dc53a4390
Also theme full changelog with default css (copy and paste sucks, I know)
2017-08-12 00:45:07 +02:00
Andreas Shimokawa
7302832d84
Also include DEFAULT_CSS for ChangeLog theming
2017-08-12 00:32:25 +02:00
Andreas Shimokawa
9ea4b8ae43
Show dark themed changelog when dark theme is selected
...
Closes #757
2017-08-11 23:57:00 +02:00
Andreas Shimokawa
5939c244fb
Merge branch 'master' into background-javascript
2017-08-01 11:19:17 +02:00
cpfeiffer
12f9386fac
Also handle resetting language to default properly #733
2017-07-31 23:00:02 +02:00
cpfeiffer
c1925a4e64
Properly handle and distribute language change #733
...
Also centralize QUIT handling in GBActivity
2017-07-31 22:49:05 +02:00
Andreas Shimokawa
c2af2dd15c
Pebble: Pass booleans from Javascript Appmessage as such and convert to int16 later when sending to pebble
...
https://developer.pebble.com/guides/communication/using-pebblekit-js/#type-conversion
2017-07-28 23:54:29 +02:00
Daniele Gobbetti
79f3cad36d
Pebble: some refinements to webview
...
- rename the createWebView method to getInstance
- remove the stateChangeListener after it has been fired once and remove obsolete code within
- instantiate the jsInterface object only when needed
- use the application context when possible to limit the usage of the mutableContextWrapper
2017-07-24 23:57:07 +02:00
Daniele Gobbetti
f6946c4402
Merge branch 'master' into background-javascript
2017-07-24 23:47:15 +02:00
Andreas Shimokawa
23d12f7289
Charts: various visual improvements
...
Thanks @girlwithnoname
2017-07-23 17:56:32 +02:00
Andreas Shimokawa
eb7e635cdc
Merge branch 'master' into background-javascript
2017-07-15 23:07:46 +02:00
Andreas Shimokawa
a4e35b49b2
Only show realtime chart on device supporting it
2017-06-02 21:59:46 +02:00
Translation Bot
fb8f866031
disable "Speed Zones" graph
...
It is not ready yet and full of bugs
2017-06-02 21:42:41 +02:00
cpfeiffer
4e9b85999e
Unregister some listeners to avoid leaking #655
2017-05-28 00:19:24 +02:00
cpfeiffer
1d79c9d93d
Dark theme: set some text colors for the speed zone tab
2017-05-18 23:26:04 +02:00
Andreas Shimokawa
7cce2aeb8b
Cleanup Speed zones chart code
...
- Remove unused stuff
- rename "pie" and "sleed" (there is no sleep and no pie here :)
2017-05-15 22:19:50 +02:00
Vebryn
7dc9c28c74
initial version of speed zones tab ( #674 )
...
* #673 initial version of speed zones tab
* #673 fix copyrights and initial step speed length
2017-05-14 23:09:27 +02:00
Andreas Shimokawa
3751273cd0
Merge branch 'master' into background-javascript
2017-05-09 14:04:33 +02:00
License Bot
8af9054f2d
Update license headers
2017-04-26 00:14:25 +02:00
cpfeiffer
2003d56190
Cleanup package blacklist handling
...
Didn't find a cause for #664 , though.
2017-04-22 16:59:55 +02:00
Andreas Shimokawa
86392dbf06
Merge branch 'master' into background-javascript
2017-04-20 14:34:32 +02:00
cpfeiffer
b142add631
Pass a GBDevice instead of GBDeviceCandidate to getBondingStyle() #651
2017-04-17 23:00:16 +02:00
cpfeiffer
589945f234
Use try-with-resources to ensure stream is closed on exception
2017-04-12 21:34:48 +02:00
Daniele Gobbetti
5bf6251dc5
Rename some layout files as they are used for specific purposes
2017-04-09 16:03:07 +02:00
Daniele Gobbetti
fe626eb11e
Remove the checkboxes in the alarms cardview and simplify layout of details activity
...
- rename the layout file of the alarm item to better organize the files
- add a color selector for the item view, this replicates the old behavior of using the color to highlight enabled days
- remove the nested linearlayouts in the alarm details activity layout and use CheckedTextView instead
2017-04-09 16:01:48 +02:00
cpfeiffer
1a88858c6f
Fix some findbugs findings
2017-04-09 01:09:43 +02:00
Daniele Gobbetti
a77ff03ca5
Add filter functionality to the app blacklist activity
2017-04-09 00:21:43 +02:00
cpfeiffer
4a4a1e25df
Properly format the sleep goal as a duration, not as a time
...
Also suppress trailing zeros, e.g. display
8h instead of 8h 0m
2017-04-08 23:16:33 +02:00
Alberto
155ce5be02
Font size bar chart ( #645 )
...
Increas font size bar chart
small fix that improves the readability of the values on bar charts
2017-04-08 22:58:58 +02:00
cpfeiffer
2feb3bed47
Reduce animation time from 350ms to 250ms
...
(seemed a bit laggy to me)
2017-04-08 22:52:22 +02:00
Daniele Gobbetti
48728cbb50
Implement recyclerView in the AppBlackListActivity.
...
This allows to implement a search functionality (in the future)
2017-04-08 22:26:12 +02:00
Daniele Gobbetti
5c0c5581bb
Merge branch 'master' into background-javascript
...
# Conflicts:
# app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/AbstractDeviceCoordinator.java
# app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/DeviceCoordinator.java
2017-04-08 21:16:01 +02:00
Daniele Gobbetti
018c2a971e
Show the list of alarms as (material design) cards
2017-04-08 18:44:15 +02:00
Daniele Gobbetti
dd5ee03932
Set the right color for the Pie charts entry labels.
...
Closes #647 by showing the text also on the light theme, instead of hiding it everywhere.
2017-04-08 15:50:13 +02:00
Daniele Gobbetti
5a019c238a
Hide the dateBar but don't set it as gone, this prevents charts from changing size when swiping.
2017-04-08 15:16:35 +02:00