summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tomasz Mikolajewski <mtomasz@google.com> 2016-02-24 19:23:54 +0900
committer Tomasz Mikolajewski <mtomasz@google.com> 2016-02-24 19:23:54 +0900
commitd49095d1e44d7b2535635fade06063c8fe127d79 (patch)
tree146e478e91a20c80053ce5668a0b40a41abcd301
parent0d47cd2912d6461d801329f4805a4e890421544d (diff)
Fix error formatting for copy/move/delete failures.
This caused major failures in the job operations, including failing tests. Change-Id: I697f1481df39a156f7ebfde08b31af6b23380f17
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/services/ResourceException.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/services/ResourceException.java b/packages/DocumentsUI/src/com/android/documentsui/services/ResourceException.java
index 9c6b51c62a2c..7d3d91a2d50d 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/services/ResourceException.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/services/ResourceException.java
@@ -24,11 +24,11 @@ public class ResourceException extends Exception {
}
public ResourceException(String message, Uri uri1, Exception e) {
- super(message.format(uri1.toString()), e);
+ super(String.format(message, uri1.toString()), e);
}
public ResourceException(String message, Uri uri1, Uri uri2, Exception e) {
- super(message.format(uri1.toString(), uri2.toString()), e);
+ super(String.format(message, uri1.toString(), uri2.toString()), e);
}
public ResourceException(String message) {
@@ -36,7 +36,7 @@ public class ResourceException extends Exception {
}
public ResourceException(String message, Uri uri1) {
- super(message.format(uri1.toString()));
+ super(String.format(message, uri1.toString()));
}
public ResourceException(String message, Uri uri1, Uri uri2) {