From 31a88fac91cbdddb2ba63b0557cfd18b31d5eaac Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Thu, 18 Jun 2009 20:44:42 -0700 Subject: Fix string formatters in SettingsProvider SecurityException message. --- .../src/com/android/providers/settings/SettingsProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java index 18a69c2..3db52eb 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java @@ -159,7 +159,7 @@ public class SettingsProvider extends ContentProvider { android.Manifest.permission.WRITE_SECURE_SETTINGS) != PackageManager.PERMISSION_GRANTED) { throw new SecurityException( - String.format("Permission denial: writing to secure settings requires $1%s", + String.format("Permission denial: writing to secure settings requires %1$s", android.Manifest.permission.WRITE_SECURE_SETTINGS)); // TODO: Move gservices into its own provider so we don't need this nonsense. @@ -168,7 +168,7 @@ public class SettingsProvider extends ContentProvider { android.Manifest.permission.WRITE_GSERVICES) != PackageManager.PERMISSION_GRANTED) { throw new SecurityException( - String.format("Permission denial: writing to gservices settings requires $1%s", + String.format("Permission denial: writing to gservices settings requires %1$s", android.Manifest.permission.WRITE_GSERVICES)); } } -- cgit v1.1