Loading res/layout/choose_lock_pattern_common.xml +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading res/layout/confirm_lock_pattern_base.xml +1 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading res/layout/confirm_lock_pattern_normal_base.xml +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading res/values/dimens.xml +3 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,9 @@ The unit is sp as it is related to the text size of password requirement item. --> <dimen name="visible_vertical_space_below_password">20sp</dimen> <!-- Minimum height for setting a lock pattern --> <dimen name="choose_lockscreen_min_height">200dp</dimen> <!-- Select dialog --> <dimen name="select_dialog_padding_start">20dp</dimen> <dimen name="select_dialog_item_margin_start">12dp</dimen> Loading src/com/android/settings/password/ChooseLockPattern.java +9 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.view.View.ACCESSIBILITY_LIVE_REGION_POLITE; import static com.android.settings.password.ChooseLockSettingsHelper.EXTRA_KEY_UNIFICATION_PROFILE_CREDENTIAL; import static com.android.settings.password.ChooseLockSettingsHelper.EXTRA_KEY_UNIFICATION_PROFILE_ID; import android.annotation.SuppressLint; import android.app.Activity; import android.app.settings.SettingsEnums; import android.content.Context; Loading @@ -35,6 +36,7 @@ import android.util.Pair; import android.util.TypedValue; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; Loading Loading @@ -491,11 +493,18 @@ public class ChooseLockPattern extends SettingsActivity { getActivity().setTitle(msg); } @SuppressLint("ClickableViewAccessibility") @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final GlifLayout layout = (GlifLayout) inflater.inflate( R.layout.choose_lock_pattern, container, false); layout.findViewById(R.id.lockPattern).setOnTouchListener((v, event) -> { if (event.getAction() == MotionEvent.ACTION_DOWN) { v.getParent().requestDisallowInterceptTouchEvent(true); } return false; }); updateActivityTitle(); layout.setHeaderText(getActivity().getTitle()); layout.getHeaderTextView().setAccessibilityLiveRegion(ACCESSIBILITY_LIVE_REGION_POLITE); Loading Loading
res/layout/choose_lock_pattern_common.xml +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading
res/layout/confirm_lock_pattern_base.xml +1 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading
res/layout/confirm_lock_pattern_normal_base.xml +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ style="@style/LockPatternContainerStyle" android:layout_width="wrap_content" android:layout_height="0dp" android:minHeight="@dimen/choose_lockscreen_min_height" android:layout_weight="1"> <com.android.internal.widget.LockPatternView Loading
res/values/dimens.xml +3 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,9 @@ The unit is sp as it is related to the text size of password requirement item. --> <dimen name="visible_vertical_space_below_password">20sp</dimen> <!-- Minimum height for setting a lock pattern --> <dimen name="choose_lockscreen_min_height">200dp</dimen> <!-- Select dialog --> <dimen name="select_dialog_padding_start">20dp</dimen> <dimen name="select_dialog_item_margin_start">12dp</dimen> Loading
src/com/android/settings/password/ChooseLockPattern.java +9 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.view.View.ACCESSIBILITY_LIVE_REGION_POLITE; import static com.android.settings.password.ChooseLockSettingsHelper.EXTRA_KEY_UNIFICATION_PROFILE_CREDENTIAL; import static com.android.settings.password.ChooseLockSettingsHelper.EXTRA_KEY_UNIFICATION_PROFILE_ID; import android.annotation.SuppressLint; import android.app.Activity; import android.app.settings.SettingsEnums; import android.content.Context; Loading @@ -35,6 +36,7 @@ import android.util.Pair; import android.util.TypedValue; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; Loading Loading @@ -491,11 +493,18 @@ public class ChooseLockPattern extends SettingsActivity { getActivity().setTitle(msg); } @SuppressLint("ClickableViewAccessibility") @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final GlifLayout layout = (GlifLayout) inflater.inflate( R.layout.choose_lock_pattern, container, false); layout.findViewById(R.id.lockPattern).setOnTouchListener((v, event) -> { if (event.getAction() == MotionEvent.ACTION_DOWN) { v.getParent().requestDisallowInterceptTouchEvent(true); } return false; }); updateActivityTitle(); layout.setHeaderText(getActivity().getTitle()); layout.getHeaderTextView().setAccessibilityLiveRegion(ACCESSIBILITY_LIVE_REGION_POLITE); Loading