Call system service API instead of checking the phenotype flag directly.
Test: atest SettingsUnitTests Bug: 208625216 Change-Id: Ib551cbaf0f09fe49bd81ef657037401263705521
This commit is contained in:
@@ -37,7 +37,7 @@ public class TopLevelSafetyCenterEntryPreferenceController extends BasePreferenc
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (SafetyCenterStatus.isEnabled()) {
|
||||
if (SafetyCenterStatusHolder.get().isEnabled(mContext)) {
|
||||
return AVAILABLE;
|
||||
}
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
|
Reference in New Issue
Block a user