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

Commit e32f4846 authored by Becky Qiu's avatar Becky Qiu
Browse files

[Overview Actions] Update Overview UI to match new spec.

See spec in the design: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g6f30ae9caf_14_4

Test: local
Bug: 139828243
Change-Id: I6e01dd5de4e4d9ccb4ec7febe81b3e789119bfa0
parent 16cd3677
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)