Use DeviceConfig flag instead of aconfig flag
Bug: 308610589 Test: Units Flag: EXEMPT Change-Id: I3ff34b4048d8c0f0101f74fbab0498f91c7c2409
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
*/
|
||||
package com.android.settings.security;
|
||||
|
||||
import static android.view.contentprotection.flags.Flags.settingUiEnabled;
|
||||
|
||||
import static com.android.internal.R.string.config_defaultContentProtectionService;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.provider.DeviceConfig;
|
||||
import android.view.contentcapture.ContentCaptureManager;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -56,4 +56,12 @@ public class ContentProtectionPreferenceController extends BasePreferenceControl
|
||||
}
|
||||
return ComponentName.unflattenFromString(flatComponentName);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
protected boolean settingUiEnabled() {
|
||||
return DeviceConfig.getBoolean(
|
||||
DeviceConfig.NAMESPACE_CONTENT_CAPTURE,
|
||||
ContentCaptureManager.DEVICE_CONFIG_PROPERTY_ENABLE_CONTENT_PROTECTION_RECEIVER,
|
||||
ContentCaptureManager.DEFAULT_ENABLE_CONTENT_PROTECTION_RECEIVER);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user