diff options
-rw-r--r-- | packages/PrintSpooler/res/layout/print_activity_controls.xml | 16 | ||||
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java | 2 |
2 files changed, 13 insertions, 5 deletions
diff --git a/packages/PrintSpooler/res/layout/print_activity_controls.xml b/packages/PrintSpooler/res/layout/print_activity_controls.xml index f0b8adf..0bf64aa 100644 --- a/packages/PrintSpooler/res/layout/print_activity_controls.xml +++ b/packages/PrintSpooler/res/layout/print_activity_controls.xml @@ -59,6 +59,7 @@ android:id="@+id/copies_edittext" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:layout_marginStart="8dip" style="?android:attr/editTextStyle" android:singleLine="true" android:ellipsize="end" @@ -89,7 +90,8 @@ <Spinner android:id="@+id/paper_size_spinner" android:layout_width="fill_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginStart="4dip"> </Spinner> </LinearLayout> @@ -116,7 +118,8 @@ <Spinner android:id="@+id/color_spinner" android:layout_width="fill_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginStart="4dip"> </Spinner> </LinearLayout> @@ -143,7 +146,8 @@ <Spinner android:id="@+id/orientation_spinner" android:layout_width="fill_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginStart="4dip"> </Spinner> </LinearLayout> @@ -170,7 +174,8 @@ <Spinner android:id="@+id/range_options_spinner" android:layout_width="fill_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginStart="4dip"> </Spinner> </LinearLayout> @@ -202,6 +207,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|fill_horizontal" + android:layout_marginStart="8dip" android:singleLine="true" android:ellipsize="end" android:visibility="visible" @@ -239,7 +245,7 @@ android:id="@+id/expand_collapse_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="4dip" + android:layout_marginTop="0dip" android:layout_marginBottom="4dip" android:layout_gravity="center" android:background="@drawable/ic_expand_more"> diff --git a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java index 429437d..c53fcad 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java +++ b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java @@ -107,11 +107,13 @@ public final class RemotePrintDocument { mDocumentInfo.info.getPageCount()); } // Notify we are done. + mState = STATE_UPDATED; notifyUpdateCompleted(); } } } else { // We always notify after a write. + mState = STATE_UPDATED; notifyUpdateCompleted(); } runPendingCommand(); |