diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-04-29 23:44:44 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-04-29 23:44:44 +0000 |
commit | ee8caf680afbf2d4b7a980fb11738f5547d23a13 (patch) | |
tree | 838c23945d124e0097ff5a2039a54ec475b4663f /go | |
parent | ac8494bfd9caa42e56cc0fc195a000ad7622c938 (diff) | |
parent | 0448ab6d7ddf25bdd615dc717933d5c8a364b1b2 (diff) | |
download | android_packages_apps_Trebuchet-ee8caf680afbf2d4b7a980fb11738f5547d23a13.tar.gz android_packages_apps_Trebuchet-ee8caf680afbf2d4b7a980fb11738f5547d23a13.tar.bz2 android_packages_apps_Trebuchet-ee8caf680afbf2d4b7a980fb11738f5547d23a13.zip |
Merge "Don't clip recents items with system bars" into ub-launcher3-qt-dev
Diffstat (limited to 'go')
-rw-r--r-- | go/quickstep/res/layout/icon_recents_root_view.xml | 3 | ||||
-rw-r--r-- | go/quickstep/src/com/android/quickstep/views/IconRecentsView.java | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/go/quickstep/res/layout/icon_recents_root_view.xml b/go/quickstep/res/layout/icon_recents_root_view.xml index ea6fbc2ef..b64b7fdad 100644 --- a/go/quickstep/res/layout/icon_recents_root_view.xml +++ b/go/quickstep/res/layout/icon_recents_root_view.xml @@ -24,7 +24,8 @@ android:layout_width="@dimen/recents_list_width" android:layout_height="match_parent" android:layout_gravity="center_horizontal" - android:scrollbars="none"/> + android:scrollbars="none" + android:clipToPadding="false"/> <TextView android:id="@+id/recent_task_empty_view" android:layout_width="match_parent" diff --git a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java index 07e5f551b..ce2248931 100644 --- a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java +++ b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java @@ -54,6 +54,7 @@ import androidx.recyclerview.widget.RecyclerView.ItemDecoration; import androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener; import com.android.launcher3.BaseActivity; +import com.android.launcher3.Insettable; import com.android.launcher3.R; import com.android.quickstep.ContentFillItemAnimator; import com.android.quickstep.RecentsModel; @@ -74,7 +75,7 @@ import java.util.Optional; * Root view for the icon recents view. Acts as the main interface to the rest of the Launcher code * base. */ -public final class IconRecentsView extends FrameLayout { +public final class IconRecentsView extends FrameLayout implements Insettable { public static final FloatProperty<IconRecentsView> CONTENT_ALPHA = new FloatProperty<IconRecentsView>("contentAlpha") { @@ -518,4 +519,9 @@ public final class IconRecentsView extends FrameLayout { }); mLayoutAnimation.start(); } + + @Override + public void setInsets(Rect insets) { + mTaskRecyclerView.setPadding(insets.left, insets.top, insets.right, insets.bottom); + } } |