Merge "Updated TaskMenuView." into sc-dev

This commit is contained in:
Sreyas Rangaraju 2021-02-12 23:11:39 +00:00 committed by Android (Google) Code Review
commit 4e6a7e340d
2 changed files with 1 additions and 2 deletions

View File

@ -29,6 +29,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:textSize="12sp"/>

View File

@ -24,7 +24,6 @@ import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.MotionEvent;
@ -164,7 +163,6 @@ public class TaskMenuView extends AbstractFloatingView {
}
private void addMenuOptions(TaskView taskView) {
Drawable icon = taskView.getTask().icon.getConstantState().newDrawable();
mTaskName.setText(TaskUtils.getTitle(getContext(), taskView.getTask()));
mTaskName.setOnClickListener(v -> close(true));