summaryrefslogtreecommitdiffstats
path: root/core/java/android/printservice/PrintJob.java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-10-04 17:37:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-04 17:37:21 -0700
commit6754f68f4967f318f252bc068db12781f5c8a26d (patch)
tree63385b6a518c66000452de99058344c8725750c9 /core/java/android/printservice/PrintJob.java
parent7dc10595e57aa43b62dfc34700fe6cc4de97dc0e (diff)
parent133c1faf8c4450c5ad45dea13323d45dfb60817b (diff)
downloadframeworks_base-6754f68f4967f318f252bc068db12781f5c8a26d.zip
frameworks_base-6754f68f4967f318f252bc068db12781f5c8a26d.tar.gz
frameworks_base-6754f68f4967f318f252bc068db12781f5c8a26d.tar.bz2
am 133c1faf: am 67d7af51: am 19565ad1: Merge "Small print API tweaks" into klp-dev
* commit '133c1faf8c4450c5ad45dea13323d45dfb60817b': Small print API tweaks
Diffstat (limited to 'core/java/android/printservice/PrintJob.java')
-rw-r--r--core/java/android/printservice/PrintJob.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/printservice/PrintJob.java b/core/java/android/printservice/PrintJob.java
index 721e31e..d1dbedf 100644
--- a/core/java/android/printservice/PrintJob.java
+++ b/core/java/android/printservice/PrintJob.java
@@ -301,6 +301,18 @@ public final class PrintJob {
return false;
}
+ /**
+ * Gets the print job tag.
+ *
+ * @return tag The tag or null.
+ *
+ * @see #setTag(String)
+ */
+ public String getTag() {
+ PrintService.throwIfNotCalledOnMainThread();
+ return getInfo().getTag();
+ }
+
@Override
public boolean equals(Object obj) {
if (this == obj) {