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

Commit fc24ab3b authored by Altaf-Mahdi's avatar Altaf-Mahdi Committed by Steve Kondik
Browse files

SystemUI: navbar dpad fixes

* set visibilty to gone, fixes dpad arrows being visible at boot when they are disabled.
* add layout for sw600dp, fixes null pointer when rotating on tablets.
* fix xml spacing, use spaces instead of tabs.

Change-Id: Ie0fe0528a539007d92a106cf2d3185f2a6515bbd
parent 532e8c20
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The CyanogenMod 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.
-->
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res-auto"
        android:id="@+id/dpad_group"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clipChildren="false"
        android:visibility="gone">

        <com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@+id/dpad_left"
                android:layout_width="@dimen/navigation_extra_key_width"
                android:layout_height="match_parent"
                android:layout_alignParentLeft="true"
                android:src="@drawable/ic_sysbar_ime_left"
                systemui:keyCode="21"
                systemui:keyRepeat="true"
                android:scaleType="center"
                android:contentDescription="@string/accessibility_dpad_left" />

        <com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@+id/dpad_right"
                android:layout_width="@dimen/navigation_extra_key_width"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:src="@drawable/ic_sysbar_ime_right"
                systemui:keyCode="22"
                systemui:keyRepeat="true"
                android:scaleType="center"
                android:contentDescription="@string/accessibility_dpad_right" />

</RelativeLayout>
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@
            android:orientation="horizontal"
            android:clipChildren="false" />

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

    </FrameLayout>

    <com.android.systemui.statusbar.policy.DeadZone
+25 −24
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@
        android:id="@+id/dpad_group"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
	android:clipChildren="false">
        android:clipChildren="false"
        android:visibility="gone">

        <com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@+id/dpad_left"
+25 −24
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@
        android:id="@+id/dpad_group"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
	android:clipChildren="false">
        android:clipChildren="false"
        android:visibility="gone">

        <com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@+id/dpad_left"