Merge "Retrieve unlockProfile attribute with private namespace" into rvc-qpr-dev
This commit is contained in:
@@ -123,6 +123,8 @@ public class TrustManagerService extends SystemService {
|
|||||||
private static final String TRUST_TIMEOUT_ALARM_TAG = "TrustManagerService.trustTimeoutForUser";
|
private static final String TRUST_TIMEOUT_ALARM_TAG = "TrustManagerService.trustTimeoutForUser";
|
||||||
private static final long TRUST_TIMEOUT_IN_MILLIS = 4 * 60 * 60 * 1000;
|
private static final long TRUST_TIMEOUT_IN_MILLIS = 4 * 60 * 60 * 1000;
|
||||||
|
|
||||||
|
private static final String PRIV_NAMESPACE = "http://schemas.android.com/apk/prv/res/android";
|
||||||
|
|
||||||
private final ArraySet<AgentInfo> mActiveAgents = new ArraySet<>();
|
private final ArraySet<AgentInfo> mActiveAgents = new ArraySet<>();
|
||||||
private final ArrayList<ITrustListener> mTrustListeners = new ArrayList<>();
|
private final ArrayList<ITrustListener> mTrustListeners = new ArrayList<>();
|
||||||
private final Receiver mReceiver = new Receiver();
|
private final Receiver mReceiver = new Receiver();
|
||||||
@@ -808,8 +810,8 @@ public class TrustManagerService extends SystemService {
|
|||||||
TypedArray sa = res
|
TypedArray sa = res
|
||||||
.obtainAttributes(attrs, com.android.internal.R.styleable.TrustAgent);
|
.obtainAttributes(attrs, com.android.internal.R.styleable.TrustAgent);
|
||||||
cn = sa.getString(com.android.internal.R.styleable.TrustAgent_settingsActivity);
|
cn = sa.getString(com.android.internal.R.styleable.TrustAgent_settingsActivity);
|
||||||
canUnlockProfile = sa.getBoolean(
|
canUnlockProfile = attrs.getAttributeBooleanValue(
|
||||||
com.android.internal.R.styleable.TrustAgent_unlockProfile, false);
|
PRIV_NAMESPACE, "unlockProfile", false);
|
||||||
sa.recycle();
|
sa.recycle();
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
caughtException = e;
|
caughtException = e;
|
||||||
|
|||||||
Reference in New Issue
Block a user