예제 #1
0
 private Intent getCameraIntent() {
   KeyguardUpdateMonitor updateMonitor = KeyguardUpdateMonitor.getInstance(mContext);
   boolean currentUserHasTrust = updateMonitor.getUserHasTrust(mLockPatternUtils.getCurrentUser());
   return mLockPatternUtils.isSecure() && !currentUserHasTrust
       ? SECURE_CAMERA_INTENT
       : INSECURE_CAMERA_INTENT;
 }