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
This commit is contained in:
committed by
Svetoslav Ganov
parent
cc696171e4
commit
6f60e56b3c
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user