diff options
author | Brett Chabot <brettchabot@android.com> | 2009-06-18 20:44:42 -0700 |
---|---|---|
committer | Brett Chabot <brettchabot@android.com> | 2009-06-19 09:45:48 -0700 |
commit | 31a88fac91cbdddb2ba63b0557cfd18b31d5eaac (patch) | |
tree | 5724eab3d1f4252cea9a3c6ff1aff548ae0bd0e5 /packages | |
parent | 16dd82cfdc879b7c3e51b19e54c70dbf78e8d697 (diff) | |
download | frameworks_base-31a88fac91cbdddb2ba63b0557cfd18b31d5eaac.zip frameworks_base-31a88fac91cbdddb2ba63b0557cfd18b31d5eaac.tar.gz frameworks_base-31a88fac91cbdddb2ba63b0557cfd18b31d5eaac.tar.bz2 |
Fix string formatters in SettingsProvider SecurityException message.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |