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

Commit bc46b71d authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Change the feature flag for Hearing Aid behavior"

am: 0dd2dbe5

Change-Id: I700465e0b5d7a595b60936fe7c2d10e1b105b71f
parents fb156d07 0dd2dbe5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -395,8 +395,7 @@
        </service>
        <service
            android:process="@string/process"
            android:name = ".hearingaid.HearingAidService"
            android:enabled="@bool/profile_supported_hearing_aid">
            android:name = ".hearingaid.HearingAidService">
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHearingAid" />
            </intent-filter>
+3 −3
Original line number Diff line number Diff line
@@ -119,10 +119,10 @@ public class Config {
        for (ProfileConfig config : PROFILE_SERVICES_AND_FLAGS) {
            boolean supported = resources.getBoolean(config.mSupported);

            if (supported && (config.mClass == HearingAidService.class) && !FeatureFlagUtils
            if (!supported && (config.mClass == HearingAidService.class) && FeatureFlagUtils
                                .isEnabled(ctx, FeatureFlagUtils.HEARING_AID_SETTINGS)) {
                Log.v(TAG, "Feature Flag disables support for HearingAidService");
                supported = false;
                Log.v(TAG, "Feature Flag enables support for HearingAidService");
                supported = true;
            }

            if (supported && !isProfileDisabled(ctx, config.mMask)) {