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

Commit fdcbe6ca authored by Becky Qiu's avatar Becky Qiu Committed by Automerger Merge Worker
Browse files

[Overview Actions] Update Overview UI to match new spec. am: e32f4846

Change-Id: I2087229f76999c7eb7b29c7d089a2040953182dd
parents 0be5fb29 e32f4846
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -268,8 +268,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
        }

        // Sets animations for modal UI. We will remove the margins to zoom in the snapshot.
        float topMargin =
                getResources().getDimension(R.dimen.task_thumbnail_top_margin_with_actions);
        float topMargin = getResources().getDimension(R.dimen.task_thumbnail_top_margin);
        float bottomMargin =
                getResources().getDimension(R.dimen.task_thumbnail_bottom_margin_with_actions);
        float newHeight = mSnapshotView.getHeight() + topMargin + bottomMargin;
+1 −2
Original line number Diff line number Diff line
@@ -17,8 +17,7 @@
<resources>

    <dimen name="task_thumbnail_top_margin">24dp</dimen>
    <dimen name="task_thumbnail_top_margin_with_actions">60dp</dimen>
    <dimen name="task_thumbnail_bottom_margin_with_actions">76dp</dimen>
    <dimen name="task_thumbnail_bottom_margin_with_actions">44dp</dimen>
    <dimen name="task_thumbnail_half_top_margin">12dp</dimen>
    <dimen name="task_thumbnail_icon_size">48dp</dimen>
    <!-- For screens without rounded corners -->
+1 −3
Original line number Diff line number Diff line
@@ -122,9 +122,7 @@ public class LayoutUtils {
            paddingHorz = res.getDimension(paddingResId);
        }

        float topIconMargin = overviewActionsEnabled
                ? res.getDimension(R.dimen.task_thumbnail_top_margin_with_actions)
                : res.getDimension(R.dimen.task_thumbnail_top_margin);
        float topIconMargin = res.getDimension(R.dimen.task_thumbnail_top_margin);
        float bottomMargin = thumbnailBottomMargin(context);

        float paddingVert = overviewActionsEnabled && removeShelfFromOverview(context)