Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfc2156e authored by Aaron Liu's avatar Aaron Liu
Browse files

[Bouncer] Separate keyguard message areas.

Separate keyguard message area between bouncer and alt bouncer. Ensure
that the separation is clear and understandable. Insert
keyguard message area for bouncer into the security view so the layout
is better.

Fixes: 242186543, 240328688
Test: Add unit tests and tested on multiple devices and view modes.
Change-Id: Iff34f1ebe108649c454691d14054072af46bfad8
parent 23a112e9
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2022 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
    <com.android.keyguard.BouncerKeyguardMessageArea
        android:id="@+id/bouncer_message_area"
        style="@style/Keyguard.TextView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/keyguard_lock_padding"
        android:ellipsize="marquee"
        android:focusable="true"
        android:gravity="center"
        android:singleLine="true" />
</merge>
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
    android:layout_gravity="center_horizontal|bottom"
    android:gravity="bottom"
    >
    <include layout="@layout/keyguard_bouncer_message_area"/>

    <Space
        android:layout_width="match_parent"
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
    android:layout_gravity="center_horizontal|bottom"
    android:clipChildren="false"
    android:clipToPadding="false">
    <include layout="@layout/keyguard_bouncer_message_area"/>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/pattern_container"
+1 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
    android:clipToPadding="false"
    android:orientation="vertical"
    androidprv:layout_maxWidth="@dimen/keyguard_security_width">
<include layout="@layout/keyguard_bouncer_message_area"/>

<androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/pin_container"
@@ -189,8 +190,6 @@

    </androidx.constraintlayout.widget.ConstraintLayout>



    <include layout="@layout/keyguard_eca"
             android:id="@+id/keyguard_selector_fade_container"
             android:layout_width="match_parent"
+5 −12
Original line number Diff line number Diff line
@@ -26,20 +26,17 @@
        android:layout_height="match_parent"
        androidprv:layout_maxWidth="@dimen/keyguard_security_width"
        android:layout_gravity="center_horizontal|bottom">

    <include layout="@layout/keyguard_bouncer_message_area" />
    <Space
          android:layout_width="match_parent"
          android:layout_height="0dp"
      android:layout_weight="1"
      />

          android:layout_weight="1" />
    <ImageView
            android:id="@+id/keyguard_sim"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:tint="@color/background_protected"
            android:src="@drawable/ic_lockscreen_sim"/>

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
@@ -52,14 +49,12 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginTop="@dimen/eca_overlap" />

        <RelativeLayout
                android:id="@+id/row0"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingBottom="4dp"
                >

            <com.android.keyguard.PasswordTextView
                android:id="@+id/simPinEntry"
                style="@style/Widget.TextView.Password"
@@ -195,7 +190,6 @@
                    />
        </LinearLayout>
    </LinearLayout>

    <include layout="@layout/keyguard_eca"
             android:id="@+id/keyguard_selector_fade_container"
             android:layout_width="match_parent"
@@ -205,5 +199,4 @@
             android:layout_marginTop="@dimen/keyguard_eca_top_margin"
             android:layout_marginBottom="2dp"
             android:gravity="center_horizontal"/>

</com.android.keyguard.KeyguardSimPinView>
Loading