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

Commit f405f507 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Load some recent tasks" into ub-launcher3-master

parents 96f4961d b63b44c3
Loading
Loading
Loading
Loading
+2.79 KiB (87.2 KiB)

File changed.

No diff preview for this file type.

+1 −1
Original line number Diff line number Diff line
@@ -15,5 +15,5 @@
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <solid android:color="#FF000000" />
    <corners android:radius="6dp" />
    <corners android:radius="2dp" />
</shape>
+4 −31
Original line number Diff line number Diff line
@@ -19,35 +19,8 @@
    android:theme="@style/HomeScreenElementTheme"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="20dp"
    android:paddingBottom="20dp"
    android:layout_gravity="center"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:layout_gravity="center_horizontal|bottom"
    android:gravity="top">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:paddingStart="40dp"
        android:paddingEnd="40dp"
        android:orientation="horizontal">

        <com.android.quickstep.SimpleTaskView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="#44FF0000"
            android:layout_marginEnd="10dp"/>

        <com.android.quickstep.SimpleTaskView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="#4400FF00"
            android:layout_marginEnd="10dp"/>

        <com.android.quickstep.SimpleTaskView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="#440000FF" />
    </LinearLayout>

</com.android.quickstep.RecentsView>
 No newline at end of file
    android:alpha="0.0"
    android:visibility="invisible" />
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -23,13 +23,14 @@
        android:id="@+id/snapshot"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="24dp"
        android:scaleType="matrix"
        android:background="@drawable/task_thumbnail_background"
        android:elevation="4dp" />
    <ImageView
        android:id="@+id/icon"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_gravity="top|center_horizontal"
        android:elevation="5dp"/>
</com.android.quickstep.TaskView>
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
@@ -46,12 +46,14 @@ public class OverviewState extends LauncherState {

    @Override
    public void onStateEnabled(Launcher launcher) {
        ((RecentsView) launcher.getOverviewPanel()).setViewVisible(true);
        RecentsView rv = launcher.getOverviewPanel();
        rv.setOverviewStateEnabled(true);
    }

    @Override
    public void onStateDisabled(Launcher launcher) {
        ((RecentsView) launcher.getOverviewPanel()).setViewVisible(false);
        RecentsView rv = launcher.getOverviewPanel();
        rv.setOverviewStateEnabled(false);
    }

    @Override
Loading