Merge "Fix security level display" into nyc-dev
am: b42b9045e2
* commit 'b42b9045e25d24676ef9c3e0cb3b36f2c98d9a10':
Fix security level display
This commit is contained in:
@@ -104,7 +104,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
|
|||||||
findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
|
findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
|
||||||
|
|
||||||
final String patch = DeviceInfoUtils.getSecurityPatch();
|
final String patch = DeviceInfoUtils.getSecurityPatch();
|
||||||
if (TextUtils.isEmpty(patch)) {
|
if (!TextUtils.isEmpty(patch)) {
|
||||||
setStringSummary(KEY_SECURITY_PATCH, patch);
|
setStringSummary(KEY_SECURITY_PATCH, patch);
|
||||||
} else {
|
} else {
|
||||||
getPreferenceScreen().removePreference(findPreference(KEY_SECURITY_PATCH));
|
getPreferenceScreen().removePreference(findPreference(KEY_SECURITY_PATCH));
|
||||||
|
Reference in New Issue
Block a user