Hi,网页设计师综合门户欢迎您!
设为首页  加为收藏  我要投稿找回密码免责声明意见反馈

招聘精英个人求职推广网站网友作品网页特效动画欣赏网页素材酷站欣赏源码下载设计软件

  • 全站搜索
  • 新闻资讯
  • 网页教程
  • 平面教程
  • 程序设计
  • 视频教程
  • Flash教程

网页设计师提供网页设计、网站程序开发、系统开发等,请联系QQ 103198680

 您当前的位置:首页 > 阅读文章
网页设计师综合门户欢迎您!

android开启图案解锁时,取消滑动解锁

刊登方式:转载   来源:网络  作者:  关键词:平面设计理念  更新时间:2017/11/10

   如果想修改成一层锁的话,需要修改如下:

  LockPatternKeyguardView.java 中:

  private Mode getInitialMode() {

  IccCard.State simState2 = IccCard.State.NOT_READY;

  final IccCard.State simState = mUpdateMonitor.getSimState();

  if(FeatureOption.MTK_GEMINI_SUPPORT == true)

  {

  simState2 = mUpdateMonitor.getSimStateGemini(Phone.GEMINI_SIM_2);

  }

  if (stuckOnLockScreenBecauseSimMissing()) {

  return Mode.LockScreen;

  } else {

  // Show LockScreen first for any screen other than Pattern unlock.

  /*final boolean usingLockPattern = mLockPatternUtils.getKeyguardStoredPasswordQuality()

  == DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;*/

  final boolean usingPINLock = IsSIMPINRequired();

  Log.i(TAG,"usingLockPattern="+usingPINLock);

  if (isSecure() && usingPINLock) {

  return Mode.UnlockScreen;

  } else {

  return Mode.LockScreen;

  }

  }

  }

  还原成如下:

  } else {

  // Show LockScreen first for any screen other than Pattern unlock.

  final boolean usingLockPattern = mLockPatternUtils.getKeyguardStoredPasswordQuality()

  == DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;

  /* final boolean usingPINLock = IsSIMPINRequired();

  Log.i(TAG,"usingLockPattern="+usingPINLock);*/

  if (isSecure() && usingLockPattern) {

  return Mode.UnlockScreen;

  } else {

  return Mode.LockScreen;

  }