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

Commit ff2aa0bc authored by Jim Miller's avatar Jim Miller
Browse files

Initial pass at adding Music control to new keyguard.

- View is now added or removed based on AudioManager status
- Reduced depth of hierarchy by making KeyguardTransportControl a KeyguardWidgetFrame
- Return to the status view when we return to keyguard (onScreenTurnedOn)

Change-Id: Id7f9310ce4e7daf663471117564e5670f61b1471
parent d428e95e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@

        <!-- TODO: Remove this once supported as a widget -->
        <include layout="@layout/keyguard_status_view"/>
        <include layout="@layout/keyguard_transport_control_view"/>

    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>


+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@

        <!-- TODO: Remove this once supported as a widget -->
        <include layout="@layout/keyguard_status_view"/>
        <include layout="@layout/keyguard_transport_control_view"/>

    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>

+2 −2
Original line number Diff line number Diff line
@@ -25,8 +25,7 @@
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:clipChildren="false">
    android:gravity="center_horizontal">

    <com.android.internal.policy.impl.keyguard.KeyguardWidgetPager
        android:id="@+id/app_widget_container"
@@ -37,6 +36,7 @@

        <!-- TODO: Remove this once supported as a widget -->
        <include layout="@layout/keyguard_status_view"/>
        <include layout="@layout/keyguard_transport_control_view"/>

    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>

+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
        android:visibility="gone">
            <!-- TODO: Remove this when supported as a widget -->
            <include layout="@layout/keyguard_status_view"/>
            <include layout="@layout/keyguard_transport_control_view"/>
    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>

    <RelativeLayout
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/keyguard_status_view"
    android:gravity="center_horizontal">

    <com.android.internal.policy.impl.keyguard.KeyguardStatusView
Loading