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

Commit cd00bf21 authored by Angela Wang's avatar Angela Wang
Browse files

Applies feature flag on Flash Notifications

Controls visibility of the Flash Notifications preference with the feature flag.

Bug: 237628564
Test: manual test
Change-Id: I8096479a648c1fe034f436ea362ec0477a9ded77
parent 4951384b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.settings.accessibility;

import android.content.Context;
import android.util.FeatureFlagUtils;

import com.android.settings.R;
import com.android.settings.core.BasePreferenceController;
@@ -32,7 +33,9 @@ public class FlashNotificationsPreferenceController extends BasePreferenceContro

    @Override
    public int getAvailabilityStatus() {
        return AVAILABLE;
        boolean isFeatureOn = FeatureFlagUtils.isEnabled(mContext,
                FeatureFlagUtils.SETTINGS_FLASH_NOTIFICATIONS);
        return isFeatureOn ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
    }

    @Override