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

Commit f633ef5f authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding fallback recents activity

> Refactoring RecentsView to a common base class
> Moving some dependency form Launcher to BaseActivity
> Using the Recents view in RecentsActivity

Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
parent 87dd782e
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
     Copyright (C) 2018 The Android Open Source 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.
-->
<com.android.quickstep.RecentsRootView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.android.quickstep.FallbackRecentsView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:theme="@style/HomeScreenElementTheme"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipChildren="false"
        android:clipToPadding="false" />

</com.android.quickstep.RecentsRootView>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<com.android.quickstep.RecentsView
<com.android.quickstep.views.LauncherRecentsView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:theme="@style/HomeScreenElementTheme"
    android:layout_width="match_parent"
@@ -24,4 +24,4 @@
    android:alpha="0.0"
    android:visibility="invisible" >

</com.android.quickstep.RecentsView>
 No newline at end of file
</com.android.quickstep.views.LauncherRecentsView>
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -13,12 +13,12 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<com.android.quickstep.TaskView xmlns:android="http://schemas.android.com/apk/res/android"
<com.android.quickstep.views.TaskView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:elevation="4dp">

    <com.android.quickstep.TaskThumbnailView
    <com.android.quickstep.views.TaskThumbnailView
        android:id="@+id/snapshot"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
@@ -29,4 +29,4 @@
        android:layout_width="@dimen/task_thumbnail_icon_size"
        android:layout_height="@dimen/task_thumbnail_icon_size"
        android:layout_gravity="top|center_horizontal" />
</com.android.quickstep.TaskView>
 No newline at end of file
</com.android.quickstep.views.TaskView>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<com.android.quickstep.TaskMenuView
<com.android.quickstep.views.TaskMenuView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/bg_popup_item_width"
    android:layout_height="wrap_content"
@@ -33,4 +33,4 @@
            android:paddingTop="18dp"
            android:drawablePadding="8dp"
            android:gravity="center_horizontal"/>
</com.android.quickstep.TaskMenuView>
 No newline at end of file
</com.android.quickstep.views.TaskMenuView>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@ import com.android.launcher3.shortcuts.DeepShortcutTextView;
import com.android.launcher3.shortcuts.DeepShortcutView;
import com.android.quickstep.RecentsAnimationInterpolator;
import com.android.quickstep.RecentsAnimationInterpolator.TaskWindowBounds;
import com.android.quickstep.RecentsView;
import com.android.quickstep.TaskView;
import com.android.quickstep.views.RecentsView;
import com.android.systemui.shared.recents.model.Task;
import com.android.quickstep.views.TaskView;
import com.android.systemui.shared.system.ActivityCompat;
import com.android.systemui.shared.system.ActivityOptionsCompat;
import com.android.systemui.shared.system.RemoteAnimationAdapterCompat;
Loading