Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f060060 authored by Bryce Lee's avatar Bryce Lee
Browse files

Allow for supported profiles to be reloaded on enable.

Bug: 24977590
Change-Id: I2e5371d3333482cdd1cf18d48fe3c2e0f2229e42
parent 2b35f774
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -426,6 +426,12 @@ public class AdapterService extends Service {

    void BleOnProcessStart() {
        debugLog("BleOnProcessStart()");

        if (getApplicationContext().getResources().getBoolean(
                R.bool.config_bluetooth_reload_supported_profiles_when_enabled)) {
            Config.init(getApplicationContext());
        }

        Class[] supportedProfileServices = Config.getSupportedProfiles();
        //Initialize data objects
        for (int i=0; i < supportedProfileServices.length;i++) {