判断当前是否是锁屏

判断当前是否是锁屏

          mKeyguardManager =
                (KeyguardManager) getActivity().getSystemService(Context.KEYGUARD_SERVICE);

 if (mKeyguardManager != null && !mKeyguardManager.inKeyguardRestrictedInputMode()) {


你可能感兴趣的:(判断当前是否是锁屏)