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

Commit 9dec5df3 authored by Svet Ganov's avatar Svet Ganov Committed by Android Git Automerger
Browse files

am 9920a0dc: Merge "Set copies to one when saving to PDF." into lmp-mr1-dev

* commit '9920a0dc':
  Set copies to one when saving to PDF.
parents eb0a058c 9920a0dc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1412,12 +1412,16 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
            mCopiesEditText.setEnabled(true);
            mCopiesEditText.setFocusableInTouchMode(true);
        } else {
            CharSequence text = mCopiesEditText.getText();
            if (TextUtils.isEmpty(text) || !MIN_COPIES_STRING.equals(text.toString())) {
                mCopiesEditText.setText(MIN_COPIES_STRING);
            }
            mCopiesEditText.setEnabled(false);
            mCopiesEditText.setFocusable(false);
        }
        if (mCopiesEditText.getError() == null
                && TextUtils.isEmpty(mCopiesEditText.getText())) {
            mCopiesEditText.setText(String.valueOf(MIN_COPIES));
            mCopiesEditText.setText(MIN_COPIES_STRING);
            mCopiesEditText.requestFocus();
        }
    }