From 139ba7fb0ed976bdbc7c283e3f7fe9980eed22a6 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Fri, 12 Sep 2014 10:35:26 -0700 Subject: Fix a crash in print preview on multiple rotations. bug:16966145 Change-Id: I8266315bd9253953cb6c3b9dab1ba36f104a74a5 --- packages/PrintSpooler/src/com/android/printspooler/ui/PageAdapter.java | 1 + .../PrintSpooler/src/com/android/printspooler/ui/PrinterRegistry.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PageAdapter.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PageAdapter.java index 22a74d6..faaf0ae 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PageAdapter.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PageAdapter.java @@ -164,6 +164,7 @@ public final class PageAdapter extends Adapter implements public void onOrientationChanged() { mColumnCount = mContext.getResources().getInteger( R.integer.preview_page_per_row_count); + notifyDataSetChanged(); } public boolean isOpened() { diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrinterRegistry.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrinterRegistry.java index 7f48217..cbc568a 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrinterRegistry.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrinterRegistry.java @@ -26,7 +26,6 @@ import android.os.Message; import android.print.PrinterId; import android.print.PrinterInfo; import com.android.internal.os.SomeArgs; -import com.android.printspooler.model.PrintSpoolerService; import java.util.ArrayList; import java.util.List; -- cgit v1.1