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

Commit 27f7325a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "SystemUI: Support clear all recent apps function and optimize task manager"

parents 84c5b7aa 6d3ed709
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -140,6 +140,11 @@
          </intent-filter>
        </activity>

        <activity android:name=".recent.TaskManagerActivity"
                android:theme="@style/TaskManagerStyle"
                android:excludeFromRecents="true">
        </activity>

        <receiver
            android:name=".recent.RecentsPreloadReceiver"
            android:exported="false">
+24 −0
Original line number Diff line number Diff line
@@ -55,6 +55,30 @@

        </com.android.systemui.recent.RecentsHorizontalScrollView>

        <LinearLayout
            android:id="@+id/recents_bottom_buttons"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:visibility="gone">
            <Button
                android:id="@+id/task_manager"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:text="@string/status_bar_recent_task_manager_text"/>
            <Button
                android:id="@+id/recents_clear"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:text="@string/status_bar_recent_clear_all_text"/>
        </LinearLayout>

    </FrameLayout>

    <include layout="@layout/status_bar_no_recent_apps"
+24 −0
Original line number Diff line number Diff line
@@ -59,6 +59,30 @@

        </com.android.systemui.recent.RecentsVerticalScrollView>

        <LinearLayout
            android:id="@+id/recents_bottom_buttons"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:visibility="gone">
            <Button
                android:id="@+id/task_manager"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:text="@string/status_bar_recent_task_manager_text"/>
            <Button
                android:id="@+id/recents_clear"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:text="@string/status_bar_recent_clear_all_text"/>
        </LinearLayout>

    </FrameLayout>

    <include layout="@layout/status_bar_no_recent_apps"
+39 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2014, The Linux Foundation. All rights reserved.

     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are
     met:
         * Redistributions of source code must retain the above copyright
           notice, this list of conditions and the following disclaimer.
         * Redistributions in binary form must reproduce the above
           copyright notice, this list of conditions and the following
           disclaimer in the documentation and/or other materials provided
           with the distribution.
         * Neither the name of The Linux Foundation nor the names of its
           contributors may be used to endorse or promote products derived
           from this software without specific prior written permission.

     THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
     WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
     BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
     BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
     OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
     IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >
        <ExpandableListView android:id="@+id/taskList"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            />
</LinearLayout>
+24 −14
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#ffffffff"
    >
    <!--android:background="@drawable/statusbar_background"-->
    <ImageView
@@ -18,23 +17,34 @@
        android:layout_alignParentLeft="true"
    />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/icon"
        android:orientation="vertical">
        <TextView android:id="@+id/taskname"
            android:layout_width="240dip"
        android:layout_height="40dip"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:maxLines="1"
            android:gravity="center_vertical"
        android:textColor="#ff000000"
        android:layout_toRightOf="@id/icon"
        />
        <TextView android:id="@+id/memorysize"
            android:layout_width="240dip"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:gravity="center_vertical"
        />
    </LinearLayout>

    <ImageView
    <Button
        android:id="@+id/kill"
        android:layout_width="40dip"
        android:layout_height="40dip"
        android:paddingRight="4dip"
        android:src="@drawable/btn_task_close"
        android:scaleType="fitCenter"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:gravity="center"
        android:layout_alignParentRight="true"
        android:text="@string/tasklist_stop"
    />

</RelativeLayout>
Loading