diff options
author | Philip P. Moltmann <moltmann@google.com> | 2018-05-10 15:22:12 -0700 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2018-05-10 15:26:39 -0700 |
commit | b3baaab4af7e1ed8dfc5da1c976cc34d135fb82b (patch) | |
tree | 139ea335eeddff9cb8afb231d8c3e1a794fd12c9 /packages/PrintSpooler/src | |
parent | a1aafd771827b7625b059842451cf63abbb4b41f (diff) |
Allow Print subsystem to work with services provided by instant app
Most functionality works, but the PrintActivity cannot directly interact
with the instant service.
As instant services should only appear in tests this functionality needs
to be enabled via shell commands.
Fixes: 79484768
Test: cts-tradefed run commandAndExit cts-instant-dev -m CtsPrintTestCases
cts-tradefed run commandAndExit cts-dev -m CtsPrintTestCases
Change-Id: Ie4663c72b8c0f959b5d172ef28875479d120e386
Diffstat (limited to 'packages/PrintSpooler/src')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index 83d7e1666809..06fbf9f6e1c1 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -811,6 +811,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat List<ResolveInfo> resolvedActivities = getPackageManager() .queryIntentActivities(intent, 0); if (resolvedActivities.isEmpty()) { + Log.w(LOG_TAG, "Advanced options activity " + mAdvancedPrintOptionsActivity + " could " + + "not be found"); return; } |