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

Commit 6f60e56b authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Improve print options click to open behavior.

When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc
parent cc696171
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ public final class PrintContentView extends ViewGroup implements View.OnClickLis
        mExpandCollapseIcon = findViewById(R.id.expand_collapse_icon);

        mExpandCollapseHandle.setOnClickListener(this);
        mSummaryContent.setOnClickListener(this);

        // Make sure we start in a closed options state.
        onDragProgress(1.0f);
@@ -154,7 +155,7 @@ public final class PrintContentView extends ViewGroup implements View.OnClickLis

    @Override
    public void onClick(View view) {
        if (view == mExpandCollapseHandle) {
        if (view == mExpandCollapseHandle || view == mSummaryContent) {
            if (isOptionsClosed() && mOptionsStateController.canOpenOptions()) {
                openOptions();
            } else if (isOptionsOpened() && mOptionsStateController.canCloseOptions()) {