From d49095d1e44d7b2535635fade06063c8fe127d79 Mon Sep 17 00:00:00 2001 From: Tomasz Mikolajewski Date: Wed, 24 Feb 2016 19:23:54 +0900 Subject: Fix error formatting for copy/move/delete failures. This caused major failures in the job operations, including failing tests. Change-Id: I697f1481df39a156f7ebfde08b31af6b23380f17 --- .../src/com/android/documentsui/services/ResourceException.java | 6 +++--- 1 file 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) { -- cgit v1.2.3-59-g8ed1b