diff options
author | Neil Fuller <nfuller@google.com> | 2017-08-11 14:19:32 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2017-08-11 14:19:32 +0100 |
commit | 3cdcb52bed671be4d0cd31154674c70156a4e3ca (patch) | |
tree | d2ee1a9cc13355fdcc9370778c4783e0ad1b329f /src/main/com/android/timezone | |
parent | 588ff040330004a5a29148103598e30b233c0976 (diff) | |
download | TimeZoneData-3cdcb52bed671be4d0cd31154674c70156a4e3ca.tar.gz |
Switch back to use manifest constant
Switch back to use a manifest constant instead of
android.provider.TimeZoneRulesDataContract.READER_PERMISSION
based on feedback from API council.
This is the second of three changes to (1) add the new constant,
(2) switch over code using the constant, (3) remove the
old constant.
Bug: 64568899
Test: None, build only
Change-Id: I1126656f0bde2db9564c3e122bb78c7a4c9b44e2
Diffstat (limited to 'src/main/com/android/timezone')
-rw-r--r-- | src/main/com/android/timezone/data/TimeZoneRulesDataProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/com/android/timezone/data/TimeZoneRulesDataProvider.java b/src/main/com/android/timezone/data/TimeZoneRulesDataProvider.java index b97a985..194620f 100644 --- a/src/main/com/android/timezone/data/TimeZoneRulesDataProvider.java +++ b/src/main/com/android/timezone/data/TimeZoneRulesDataProvider.java @@ -111,10 +111,10 @@ public final class TimeZoneRulesDataProvider extends ContentProvider { // Use readPermission only to implement permissions. throw new SecurityException("Use android:readPermission only"); } - if (!TimeZoneRulesDataContract.READER_PERMISSION.equals(info.readPermission)) { + if (!android.Manifest.permission.UPDATE_TIME_ZONE_RULES.equals(info.readPermission)) { // Writing is not supported. throw new SecurityException("android:readPermission must be set to \"" - + TimeZoneRulesDataContract.READER_PERMISSION + + android.Manifest.permission.UPDATE_TIME_ZONE_RULES + "\" is: " + info.readPermission); } |