1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-01 09:16:24 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities
dakhnod 4a8523f790 multi-device-support (#2526)
this PR aims to add device for multiple connected devices at once.

A lot of stuff already works, some things need to be done:

- [x] change DeviceCommunicationService to hold multiple devices and supports
- [x] implement connect / disconnect logic
- [x] widgets, not really suited for multiple devices, so far
- [x] change the notification to show multiple devices
- [ ] change GBDeviceService#onFindDevice and similar API functions to target individual devices, not all connected.
- [x] move auto-reconnect setting to device settings
- [x] fix music event crash
- [x] work out behaviour when pressing "connect" from notification
- [ ] handle service crashes
- [ ] suit coordinator methods for multiple devices of same kind
- [x] change ACL_CONNECTED receiver to connect to devices that are not currently registered in DeviceCommunicationService
- [ ] adjust after-boot auto-connection logic
- [ ] fix hanging device support. Device says disconnected, GB says connected
- [x] firmware updater doesn't work

My attempt to make onFindDevice work was to change the arguments to ```EventHandler#onFindDevice(GBDevice device, boolean start)```.
The Problem is that this forces the device-specific implementations to also accept GBDevice as an argument.

Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: dakhnod <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-06-14 18:05:41 +02:00
..
appmanager Fossil Hybrid HR: Edit existing watchfaces from app manager cache 2021-07-19 13:43:05 +02:00
charts Refactor formatting of distance strings 2021-12-30 07:55:20 +01:00
devicesettings multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
AboutActivity.java Add commit id into About screen 2021-12-30 10:40:40 +01:00
AboutUserPreferencesActivity.java Activity Card: React to User settings. Unify step length 2021-12-05 10:34:55 +01:00
AbstractFragmentPagerAdapter.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractGBActivity.java Add black background to Dark Theme 2021-07-06 21:04:27 +02:00
AbstractGBFragment.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractGBFragmentActivity.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractListActivity.java Make Sports Activities list use Activity List style 2020-10-17 14:55:12 +02:00
AbstractSettingsActivity.java Activity Card: React to User settings. Unify step length 2021-12-05 10:34:55 +01:00
ActivitySummariesActivity.java Improve Sports Activities dashboard and Filter 2020-11-26 17:19:08 +01:00
ActivitySummariesChartFragment.java Add header-title to Activity detail 2021-03-08 09:59:14 +01:00
ActivitySummariesFilter.java Rework the Daily Widget: 2020-12-20 19:01:00 +01:00
ActivitySummariesGpsFragment.java flip and scale GPX canvas 2021-02-13 18:10:42 +01:00
ActivitySummaryDetail.java add GPX receiver via intent 2021-07-14 11:41:41 +02:00
AlarmDetails.java Fixed a bunch of warnings 2020-08-26 09:38:31 +02:00
AndroidPairingActivity.java Update license headers 2020-01-09 10:44:32 +01:00
AppBlacklistActivity.java Reworking notification management 2021-10-10 11:49:13 +02:00
AppCompatPreferenceActivity.java Migrate to androidx support libraries and bump compile SDK version 2019-01-26 16:00:56 +01:00
BatteryInfoActivity.java Fix battery level and voltage index on BatteryInfoActivity 2021-11-30 23:41:58 +00:00
BatteryInfoChartFragment.java Add support for multiple batteries per device 2021-11-02 14:37:47 +01:00
CalBlacklistActivity.java fix calendar blacklist, view and storage 2022-05-30 13:14:46 +02:00
ConfigureAlarms.java Add title and description to Alarm table (currently unsued) 2020-04-24 00:31:04 +02:00
ConfigureReminders.java Mi Band 3: Add support for Reminders 2021-12-11 22:39:18 +01:00
ConfigureWorldClocks.java Mi Band 5: Add support for World Clocks 2022-05-10 13:59:25 +02:00
ControlCenterv2.java Bangle.js build: remove the 'Donate' link for the Bangle.js build only, and instead add a message in the app's About dialog (unfortunately this is needed because Google Play store policy doesn't allow you to 'buy' stuff outside of the store) 2022-06-13 08:38:05 +01:00
DataManagementActivity.java AutoExporter changes for better operation and troubleshooting. 2022-03-06 13:03:59 +01:00
DebugActivity.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
DiscoveryActivity.java Allow to set discovery scanning level to prevent freezing 2022-06-11 23:07:56 +02:00
DiscoveryPairingPreferenceActivity.java Discovery activity: set scanning sensitivity to level 2 2022-06-13 06:11:26 +02:00
ExternalPebbleJSActivity.java Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
FindPhoneActivity.java Added ringtone preference setting. 2021-09-21 21:03:37 +02:00
FwAppInstallerActivity.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
GBActivity.java Update license headers 2020-01-09 10:44:32 +01:00
GpxReceiverActivity.java add GPX receiver via intent 2021-07-14 11:41:41 +02:00
HeartRateDialog.java add Heart icon (trigger heart measurement) to device action icons 2021-08-08 11:12:08 +02:00
HeartRateUtils.java Update license headers 2020-01-09 10:44:32 +01:00
InstallActivity.java Update license headers 2020-01-09 10:44:32 +01:00
NotificationFilterActivity.java Update license headers 2020-01-09 10:44:32 +01:00
NotificationManagementActivity.java allow to open Android notification settings from Notification settings 2022-02-23 10:25:10 +01:00
ReminderDetails.java Mi Band 3: Add support for Reminders 2021-12-11 22:39:18 +01:00
SettingsActivity.java AutoExporter changes for better operation and troubleshooting. 2022-03-06 13:03:59 +01:00
SleepAlarmWidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
VibrationActivity.java Update license headers 2020-01-09 10:44:32 +01:00
WidgetAlarmsActivity.java Handle one shot alarm for Fossil watch 2022-06-12 08:50:46 +02:00
WidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
WorldClockDetails.java Mi Band 5: Add support for World Clocks 2022-05-10 13:59:25 +02:00