diff options
author | Jeff Sharkey <jsharkey@google.com> | 2018-07-12 01:19:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-07-12 01:19:39 +0000 |
commit | b5a3117fe9675d9cedcaf22dff017cd48e659c7d (patch) | |
tree | df1a8283864493d4255cfbff866cec2a4b76a56f /packages/PrintSpooler/src | |
parent | 62381f9b48871c13385871910615e496954cbafd (diff) | |
parent | 5aae0c9df7dc3be65dd9aa75d4c11c49a41638ee (diff) |
Merge "Utility methods useful for working with files."
Diffstat (limited to 'packages/PrintSpooler/src')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index 06fbf9f6e1c1..59f272ff70f6 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -297,7 +297,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat + " cannot be null"); } - mCallingPackageName = extras.getString(DocumentsContract.EXTRA_PACKAGE_NAME); + mCallingPackageName = extras.getString(Intent.EXTRA_PACKAGE_NAME); if (savedInstanceState == null) { MetricsLogger.action(this, MetricsEvent.PRINT_PREVIEW, mCallingPackageName); @@ -715,7 +715,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); intent.setType("application/pdf"); intent.putExtra(Intent.EXTRA_TITLE, info.getName()); - intent.putExtra(DocumentsContract.EXTRA_PACKAGE_NAME, mCallingPackageName); + intent.putExtra(Intent.EXTRA_PACKAGE_NAME, mCallingPackageName); try { startActivityForResult(intent, ACTIVITY_REQUEST_CREATE_FILE); |