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

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

Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-master

parents 639505c2 ed5e43bd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -315,6 +315,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
     * @param modalness [0, 1] 0 being in context with other tasks, 1 being shown on its own.
     */
    public void setModalness(float modalness) {
        if (mModalness == modalness) {
            return;
        }
        mModalness = modalness;
        mIconView.setAlpha(comp(modalness));
        if (mContextualChip != null) {
@@ -324,7 +327,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
        if (mContextualChipWrapper != null) {
            mContextualChipWrapper.setAlpha(comp(modalness));
        }

        updateFooterVerticalOffset(mFooterVerticalOffset);
    }