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

Commit c85f0408 authored by Vikram Aggarwal's avatar Vikram Aggarwal
Browse files

Include the clock in landscape on Xoom

1. R.id.status was defined twice and was used inconsistently in code:
   (visibility set to enabled, but only on portrait...) This code removes
   the bad view.

2. The TextView date was never used, either by another layout or by
   code. Deleting this view too.

3. Including a standard status layout on smallest-width-600px, which includes
   a clock and a status message on Xoom.

Fix b/6061076

Change-Id: Ibb492e89f6a4a38ac6a22398ec9c14bbe3fb7e3d
parent 9593b743
Loading
Loading
Loading
Loading
+6 −13
Original line number Diff line number Diff line
@@ -16,11 +16,16 @@
** limitations under the License.
*/
-->
<!-- Layout containing two panes and a keyboard entry. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
>

    <include layout="@layout/crypt_keeper_status" />

    <!-- The right pane contains the encdroid image, a string, and an edit field. -->
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="0dip"
@@ -56,20 +61,8 @@
            <include layout="@layout/crypt_keeper_password_field" />
        </LinearLayout>

        <TextView android:id="@+id/status"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_toRightOf="@+id/passwordLabel"
            android:layout_below="@+id/passwordEntry"
            android:paddingTop="8dip"
            android:singleLine="true"
            android:textSize="17sp"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:drawableLeft="@*android:drawable/ic_lock_idle_lock"
            android:visibility="gone"
        />
    </RelativeLayout>

<!-- And this is the keyboard. -->
    <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
+0 −13
Original line number Diff line number Diff line
@@ -57,19 +57,6 @@
        >
            <include layout="@layout/crypt_keeper_password_field" />
        </LinearLayout>

        <TextView android:id="@+id/status"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_toRightOf="@+id/passwordLabel"
            android:layout_below="@+id/passwordEntry"
            android:paddingTop="8dip"
            android:singleLine="true"
            android:textSize="17sp"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:drawableLeft="@*android:drawable/ic_lock_idle_lock"
            android:visibility="gone"
        />
    </RelativeLayout>

</RelativeLayout>
+0 −10
Original line number Diff line number Diff line
@@ -62,16 +62,6 @@

    </com.android.internal.widget.DigitalClock>

    <TextView
        android:id="@+id/date"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/time"
        android:layout_marginTop="10dip"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:textSize="22sp"
        />

    <TextView
        android:id="@+id/status"
        android:layout_width="wrap_content"