Loading packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +11 −6 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.keyguard; import android.app.ActivityManager; import android.app.AlarmManager; import android.content.ContentResolver; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; Loading Loading @@ -198,13 +197,19 @@ public class KeyguardStatusView extends GridLayout { } private String getOwnerInfo() { ContentResolver res = getContext().getContentResolver(); String info = null; if (mLockPatternUtils.isDeviceOwnerInfoEnabled()) { // Use the device owner information set by device policy client via // device policy manager. info = mLockPatternUtils.getDeviceOwnerInfo(); } else { // Use the current user owner information if enabled. final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( KeyguardUpdateMonitor.getCurrentUser()); if (ownerInfoEnabled) { info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); } } return info; } Loading Loading
packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +11 −6 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.keyguard; import android.app.ActivityManager; import android.app.AlarmManager; import android.content.ContentResolver; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; Loading Loading @@ -198,13 +197,19 @@ public class KeyguardStatusView extends GridLayout { } private String getOwnerInfo() { ContentResolver res = getContext().getContentResolver(); String info = null; if (mLockPatternUtils.isDeviceOwnerInfoEnabled()) { // Use the device owner information set by device policy client via // device policy manager. info = mLockPatternUtils.getDeviceOwnerInfo(); } else { // Use the current user owner information if enabled. final boolean ownerInfoEnabled = mLockPatternUtils.isOwnerInfoEnabled( KeyguardUpdateMonitor.getCurrentUser()); if (ownerInfoEnabled) { info = mLockPatternUtils.getOwnerInfo(KeyguardUpdateMonitor.getCurrentUser()); } } return info; } Loading