Loading core/res/res/layout-port/keyguard_host_view.xml +1 −0 Original line number Diff line number Diff line Loading @@ -80,6 +80,7 @@ </com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer> <ImageButton android:id="@+id/expand_challenge_handle" android:layout_width="match_parent" android:layout_height="@dimen/kg_widget_pager_bottom_padding" androidprv:layout_childType="expandChallengeHandle" Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1888,6 +1888,7 @@ <!-- Lockscreen --> <java-symbol type="bool" name="config_disableHomeUnlockSetting" /> <java-symbol type="id" name="expand_challenge_handle" /> <!-- Lock screen always show battery --> <java-symbol type="string" name="lockscreen_discharging" /> Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +20 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.provider.Settings; import android.util.AttributeSet; import android.util.Log; import android.util.Slog; import android.view.HapticFeedbackConstants; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MotionEvent; Loading Loading @@ -79,6 +80,7 @@ public class KeyguardHostView extends KeyguardViewBase { private KeyguardSecurityViewFlipper mSecurityViewContainer; private KeyguardSelectorView mKeyguardSelectorView; private KeyguardTransportControlView mTransportControl; private View mExpandChallengeView; private boolean mIsVerifyUnlockOnly; private boolean mEnableFallback; // TODO: This should get the value from KeyguardPatternView private SecurityMode mCurrentSecuritySelection = SecurityMode.Invalid; Loading Loading @@ -250,9 +252,27 @@ public class KeyguardHostView extends KeyguardViewBase { showPrimarySecurityScreen(false); updateSecurityViews(); mExpandChallengeView = (View) findViewById(R.id.expand_challenge_handle); if (mExpandChallengeView != null) { mExpandChallengeView.setOnLongClickListener(mFastUnlockClickListener); } minimizeChallengeIfDesired(); } private final OnLongClickListener mFastUnlockClickListener = new OnLongClickListener() { @Override public boolean onLongClick(View v) { if (mLockPatternUtils.isTactileFeedbackEnabled()) { v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); } showNextSecurityScreenOrFinish(false); return true; } }; private int getDisabledFeatures(DevicePolicyManager dpm) { int disabledFeatures = DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; if (dpm != null) { Loading Loading
core/res/res/layout-port/keyguard_host_view.xml +1 −0 Original line number Diff line number Diff line Loading @@ -80,6 +80,7 @@ </com.android.internal.policy.impl.keyguard.KeyguardSecurityContainer> <ImageButton android:id="@+id/expand_challenge_handle" android:layout_width="match_parent" android:layout_height="@dimen/kg_widget_pager_bottom_padding" androidprv:layout_childType="expandChallengeHandle" Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1888,6 +1888,7 @@ <!-- Lockscreen --> <java-symbol type="bool" name="config_disableHomeUnlockSetting" /> <java-symbol type="id" name="expand_challenge_handle" /> <!-- Lock screen always show battery --> <java-symbol type="string" name="lockscreen_discharging" /> Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +20 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import android.provider.Settings; import android.util.AttributeSet; import android.util.Log; import android.util.Slog; import android.view.HapticFeedbackConstants; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MotionEvent; Loading Loading @@ -79,6 +80,7 @@ public class KeyguardHostView extends KeyguardViewBase { private KeyguardSecurityViewFlipper mSecurityViewContainer; private KeyguardSelectorView mKeyguardSelectorView; private KeyguardTransportControlView mTransportControl; private View mExpandChallengeView; private boolean mIsVerifyUnlockOnly; private boolean mEnableFallback; // TODO: This should get the value from KeyguardPatternView private SecurityMode mCurrentSecuritySelection = SecurityMode.Invalid; Loading Loading @@ -250,9 +252,27 @@ public class KeyguardHostView extends KeyguardViewBase { showPrimarySecurityScreen(false); updateSecurityViews(); mExpandChallengeView = (View) findViewById(R.id.expand_challenge_handle); if (mExpandChallengeView != null) { mExpandChallengeView.setOnLongClickListener(mFastUnlockClickListener); } minimizeChallengeIfDesired(); } private final OnLongClickListener mFastUnlockClickListener = new OnLongClickListener() { @Override public boolean onLongClick(View v) { if (mLockPatternUtils.isTactileFeedbackEnabled()) { v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); } showNextSecurityScreenOrFinish(false); return true; } }; private int getDisabledFeatures(DevicePolicyManager dpm) { int disabledFeatures = DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; if (dpm != null) { Loading