1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities
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
..
appmanager Update license headers 2020-01-09 10:44:32 +01:00
charts Make charts tabs selectable sortable 2020-11-28 23:42:30 +01:00
devicesettings Casio GBX-100: Add step count data and more device settings 2020-12-20 00:22:35 +01:00
AboutActivity.java Add version to About screen 2020-10-24 21:55:48 +02:00
AboutUserPreferencesActivity.java Separate AboutUser and link to it from Charts Settings 2020-11-14 10:06:55 +01:00
AbstractFragmentPagerAdapter.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractGBActivity.java Update license headers 2020-01-09 10:44:32 +01: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 Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
ActivitySummariesActivity.java Improve Sports Activities dashboard and Filter 2020-11-26 17:19:08 +01:00
ActivitySummariesChartFragment.java Handle device null state when being disconnected 2020-09-28 09:49:08 +02:00
ActivitySummariesFilter.java Rework the Daily Widget: 2020-12-20 19:01:00 +01:00
ActivitySummariesGpsFragment.java Add GPS fragment to Sport Activity detail 2020-10-24 18:27:51 +02:00
ActivitySummaryDetail.java Allow to clear activity label. Select device for foreign sport activiry. 2020-11-26 23:21:50 +01: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 Update license headers 2020-01-09 10:44:32 +01:00
AppCompatPreferenceActivity.java Migrate to androidx support libraries and bump compile SDK version 2019-01-26 16:00:56 +01:00
CalBlacklistActivity.java Update license headers 2020-01-09 10:44:32 +01:00
ConfigureAlarms.java Add title and description to Alarm table (currently unsued) 2020-04-24 00:31:04 +02:00
ControlCenterv2.java Fix main fab behavior 2020-11-14 12:21:38 +01:00
DbManagementActivity.java Printed a few rather fatal exceptions in case they happen for easier debugging (#1946) 2020-08-02 10:55:06 +02:00
DebugActivity.java Rework the Daily Widget: 2020-12-20 19:01:00 +01:00
DiscoveryActivity.java Add BlueTooth receivers in onResume 2020-12-28 22:03:41 +01:00
ExternalPebbleJSActivity.java Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
FindPhoneActivity.java FIX: Fix find-my-phone for android 10 with notifications. 2020-03-12 09:26:22 +01:00
FwAppInstallerActivity.java Added PineTime (InfiniTime) Nordic DFU support 2020-10-11 19:16:31 +03:00
GBActivity.java Update license headers 2020-01-09 10:44:32 +01: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
SettingsActivity.java Separate AboutUser and link to it from Charts Settings 2020-11-14 10:06:55 +01:00
VibrationActivity.java Update license headers 2020-01-09 10:44:32 +01:00
WidgetAlarmsActivity.java ensure that correct device is used for activity launched from widget 2020-12-21 11:23:01 +01:00
WidgetConfigurationActivity.java Rework the Daily Widget: 2020-12-20 19:01:00 +01:00