Loading packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +29 −21 Original line number Diff line number Diff line Loading @@ -3117,6 +3117,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat private final Consumer<String> mCallback; private boolean mIsTransformationStarted; public DocumentTransformer(Context context, PrintJobInfo printJob, MutexFileProvider fileProvider, PrintAttributes attributes, Consumer<String> callback) { Loading Loading @@ -3144,6 +3146,9 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat @Override public void onServiceConnected(ComponentName name, IBinder service) { // We might get several onServiceConnected if the service crashes and restarts. // mIsTransformationStarted makes sure that we only try once. if (!mIsTransformationStarted) { final IPdfEditor editor = IPdfEditor.Stub.asInterface(service); new AsyncTask<Void, Void, String>() { @Override Loading @@ -3167,6 +3172,9 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat mCallback.accept(error); } }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); mIsTransformationStarted = true; } } @Override Loading Loading
packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +29 −21 Original line number Diff line number Diff line Loading @@ -3117,6 +3117,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat private final Consumer<String> mCallback; private boolean mIsTransformationStarted; public DocumentTransformer(Context context, PrintJobInfo printJob, MutexFileProvider fileProvider, PrintAttributes attributes, Consumer<String> callback) { Loading Loading @@ -3144,6 +3146,9 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat @Override public void onServiceConnected(ComponentName name, IBinder service) { // We might get several onServiceConnected if the service crashes and restarts. // mIsTransformationStarted makes sure that we only try once. if (!mIsTransformationStarted) { final IPdfEditor editor = IPdfEditor.Stub.asInterface(service); new AsyncTask<Void, Void, String>() { @Override Loading @@ -3167,6 +3172,9 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat mCallback.accept(error); } }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); mIsTransformationStarted = true; } } @Override Loading