Settings: Add config to show/hide vendor security patch level

This commit is contained in:
Joey
2024-06-05 16:23:59 +09:00
parent 7c1e380d58
commit d41c2b2337
2 changed files with 5 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ public class LineageVendorSecurityPatchLevelPreferenceController extends BasePre
@Override
public int getAvailabilityStatus() {
return AVAILABLE;
return mContext.getResources().getBoolean(R.bool.config_show_vendor_patch_level)
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
}
@Override