mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Merge "Add support for showing border for desktop tile" into tm-qpr-dev am: 4ec2d1296f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21427684 Change-Id: I5dd4cf19c5e0def592d43bf9a1200689bce7b4d2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -17,12 +17,15 @@
|
||||
|
||||
<com.android.quickstep.views.DesktopTaskView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="true"
|
||||
android:clipToOutline="true"
|
||||
android:defaultFocusHighlightEnabled="false"
|
||||
android:focusable="true">
|
||||
android:focusable="true"
|
||||
launcher:borderColor="?androidprv:attr/colorAccentSecondaryVariant">
|
||||
|
||||
<View
|
||||
android:id="@+id/background"
|
||||
|
||||
@@ -132,6 +132,12 @@ public class DesktopTaskView extends TaskView {
|
||||
mIconView.setDrawable(new LayerDrawable(new Drawable[]{iconBackground, icon}));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateBorderBounds(Rect bounds) {
|
||||
bounds.set(mBackgroundView.getLeft(), mBackgroundView.getTop(), mBackgroundView.getRight(),
|
||||
mBackgroundView.getBottom());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bind(Task task, RecentsOrientedState orientedState) {
|
||||
bind(Collections.singletonList(task), orientedState);
|
||||
|
||||
Reference in New Issue
Block a user