Settings: Add config to show/hide vendor security patch level
This commit is contained in:
@@ -58,4 +58,7 @@
|
|||||||
|
|
||||||
<!-- Face enroll finish text -->
|
<!-- Face enroll finish text -->
|
||||||
<string name="security_settings_face_enroll_finish_description_with_bp">Now you can use your face to unlock your phone or verify it’s you, like when you sign in to apps or approve a purchase</string>
|
<string name="security_settings_face_enroll_finish_description_with_bp">Now you can use your face to unlock your phone or verify it’s you, like when you sign in to apps or approve a purchase</string>
|
||||||
|
|
||||||
|
<!-- Whether to show vendor security patch level -->
|
||||||
|
<bool name="config_show_vendor_patch_level" translatable="false">true</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ public class LineageVendorSecurityPatchLevelPreferenceController extends BasePre
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getAvailabilityStatus() {
|
public int getAvailabilityStatus() {
|
||||||
return AVAILABLE;
|
return mContext.getResources().getBoolean(R.bool.config_show_vendor_patch_level)
|
||||||
|
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user