Loading packages/PrintSpooler/src/com/android/printspooler/ui/SelectPrinterActivity.java +7 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.printspooler.ui; import android.annotation.NonNull; import android.annotation.Nullable; import android.app.Activity; import android.app.ActivityOptions; import android.app.LoaderManager; import android.content.ComponentName; import android.content.Context; Loading Loading @@ -714,8 +715,13 @@ public final class SelectPrinterActivity extends Activity implements try { mPrinterForInfoIntent = printer; Bundle options = ActivityOptions.makeBasic() .setPendingIntentBackgroundActivityStartMode( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED) .toBundle(); startIntentSenderForResult(printer.getInfoIntent().getIntentSender(), INFO_INTENT_REQUEST_CODE, fillInIntent, 0, 0, 0); INFO_INTENT_REQUEST_CODE, fillInIntent, 0, 0, 0, options); } catch (SendIntentException e) { mPrinterForInfoIntent = null; Log.e(LOG_TAG, "Could not execute pending info intent: %s", e); Loading Loading
packages/PrintSpooler/src/com/android/printspooler/ui/SelectPrinterActivity.java +7 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.printspooler.ui; import android.annotation.NonNull; import android.annotation.Nullable; import android.app.Activity; import android.app.ActivityOptions; import android.app.LoaderManager; import android.content.ComponentName; import android.content.Context; Loading Loading @@ -714,8 +715,13 @@ public final class SelectPrinterActivity extends Activity implements try { mPrinterForInfoIntent = printer; Bundle options = ActivityOptions.makeBasic() .setPendingIntentBackgroundActivityStartMode( ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED) .toBundle(); startIntentSenderForResult(printer.getInfoIntent().getIntentSender(), INFO_INTENT_REQUEST_CODE, fillInIntent, 0, 0, 0); INFO_INTENT_REQUEST_CODE, fillInIntent, 0, 0, 0, options); } catch (SendIntentException e) { mPrinterForInfoIntent = null; Log.e(LOG_TAG, "Could not execute pending info intent: %s", e); Loading