手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >android开启图案解锁时,取消滑动解锁
android开启图案解锁时,取消滑动解锁
摘要:如果想修改成一层锁的话,需要修改如下:LockPatternKeyguardView.java中:privateModegetInitial...

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

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;

}

【android开启图案解锁时,取消滑动解锁】相关文章:

android layout XML解析错误的解决方法

Android监听文件和目录动态

android获取音乐文件的内置专辑图片实现思路及代码

android导入第三方jar包报错 如何正确导入jar包

Android中查看服务是否开启的工具类

android内存优化之图片优化

Android实现TextView中文字链接的4种方式介绍及代码

Android软件开发环境搭建

在Android中创建菜单项Menu以及获取手机分辨率的解决方法

Android列表实现(2)_游标列表案例讲解

精品推荐
分类导航