diff options
author | Svetoslav <svetoslavganov@google.com> | 2013-10-04 18:08:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-04 18:08:46 -0700 |
commit | 45cbf1fd27ae5dc09ad5ca196ddb482994695c5a (patch) | |
tree | 36bce173e01949ecbab77ff39599af6da97a4fa9 /packages/PrintSpooler | |
parent | 28ff40405dc30d82d53472f2b28436234e8c9f65 (diff) | |
parent | 06aecf1bcb936c60d03b4c5f30f2fc1a113f076a (diff) | |
download | frameworks_base-45cbf1fd27ae5dc09ad5ca196ddb482994695c5a.zip frameworks_base-45cbf1fd27ae5dc09ad5ca196ddb482994695c5a.tar.gz frameworks_base-45cbf1fd27ae5dc09ad5ca196ddb482994695c5a.tar.bz2 |
am 06aecf1b: am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev
* commit '06aecf1bcb936c60d03b4c5f30f2fc1a113f076a':
Print UI tweaks.
Diffstat (limited to 'packages/PrintSpooler')
-rw-r--r-- | packages/PrintSpooler/res/drawable-hdpi/ic_restart.png | bin | 0 -> 3138 bytes | |||
-rw-r--r-- | packages/PrintSpooler/res/drawable-mdpi/ic_restart.png | bin | 0 -> 3033 bytes | |||
-rw-r--r-- | packages/PrintSpooler/res/drawable-xhdpi/ic_restart.png | bin | 0 -> 3219 bytes | |||
-rw-r--r-- | packages/PrintSpooler/res/values/strings.xml | 2 | ||||
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/NotificationController.java | 2 | ||||
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java | 11 |
6 files changed, 7 insertions, 8 deletions
diff --git a/packages/PrintSpooler/res/drawable-hdpi/ic_restart.png b/packages/PrintSpooler/res/drawable-hdpi/ic_restart.png Binary files differnew file mode 100644 index 0000000..bb9d855 --- /dev/null +++ b/packages/PrintSpooler/res/drawable-hdpi/ic_restart.png diff --git a/packages/PrintSpooler/res/drawable-mdpi/ic_restart.png b/packages/PrintSpooler/res/drawable-mdpi/ic_restart.png Binary files differnew file mode 100644 index 0000000..bd611e8 --- /dev/null +++ b/packages/PrintSpooler/res/drawable-mdpi/ic_restart.png diff --git a/packages/PrintSpooler/res/drawable-xhdpi/ic_restart.png b/packages/PrintSpooler/res/drawable-xhdpi/ic_restart.png Binary files differnew file mode 100644 index 0000000..a7fdc0d --- /dev/null +++ b/packages/PrintSpooler/res/drawable-xhdpi/ic_restart.png diff --git a/packages/PrintSpooler/res/values/strings.xml b/packages/PrintSpooler/res/values/strings.xml index 5b947ba..3a888a8 100644 --- a/packages/PrintSpooler/res/values/strings.xml +++ b/packages/PrintSpooler/res/values/strings.xml @@ -56,7 +56,7 @@ <string name="printing_app_crashed">Printing app crashed</string> <!-- Title if the number of pages in a printed document is unknown. [CHAR LIMIT=20] --> - <string name="page_count_unknown">unavailable</string> + <string name="page_count_unknown">Pages</string> <!-- Title for the temporary dialog show while an app is generating a print job. [CHAR LIMIT=30] --> <string name="generating_print_job">Generating print job</string> diff --git a/packages/PrintSpooler/src/com/android/printspooler/NotificationController.java b/packages/PrintSpooler/src/com/android/printspooler/NotificationController.java index dae7770..2bd0443 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/NotificationController.java +++ b/packages/PrintSpooler/src/com/android/printspooler/NotificationController.java @@ -110,7 +110,7 @@ public class NotificationController { printJob.getLabel())) .addAction(R.drawable.stat_notify_cancelling, mContext.getString(R.string.cancel), createCancelIntent(printJob)) - .addAction(android.R.drawable.ic_secure, mContext.getString(R.string.restart), + .addAction(R.drawable.ic_restart, mContext.getString(R.string.restart), createRestartIntent(printJob.getId())) .setContentText(printJob.getPrinterName()) .setWhen(System.currentTimeMillis()) diff --git a/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java b/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java index 293be1b..f1678ff 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java @@ -1862,18 +1862,17 @@ public class PrintJobConfigActivity extends Activity { } } final int pageCount = mDocument.info.getPageCount(); - mRangeOptionsTitle.setText(getString(R.string.label_pages, - (pageCount == PrintDocumentInfo.PAGE_COUNT_UNKNOWN) - ? getString(R.string.page_count_unknown) - : String.valueOf(pageCount))); + String title = (pageCount != PrintDocumentInfo.PAGE_COUNT_UNKNOWN) + ? getString(R.string.label_pages, String.valueOf(pageCount)) + : getString(R.string.page_count_unknown); + mRangeOptionsTitle.setText(title); } else { if (mRangeOptionsSpinner.getSelectedItemPosition() != 0) { mIgnoreNextRangeOptionChange = true; mRangeOptionsSpinner.setSelection(0); } mRangeOptionsSpinner.setEnabled(false); - mRangeOptionsTitle.setText(getString(R.string.label_pages, - getString(R.string.page_count_unknown))); + mRangeOptionsTitle.setText(getString(R.string.page_count_unknown)); mPageRangeEditText.setEnabled(false); mPageRangeEditText.setVisibility(View.INVISIBLE); mPageRangeTitle.setVisibility(View.INVISIBLE); |