Skip to content

Commit 5bcb551

Browse files
author
Doug Zongker
committed
fix argument parser for global settings URLs
Make content://settings/global/setting_name URLs work like system and secure URLs. Bug: 7212535 Change-Id: I33e388a0cc80309453714eab726ce45b3f8fef73
1 parent bc391d5 commit 5bcb551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ private static class SqlArguments {
252252
if (!DatabaseHelper.isValidTable(this.table)) {
253253
throw new IllegalArgumentException("Bad root path: " + this.table);
254254
}
255-
if (TABLE_SYSTEM.equals(this.table) || TABLE_SECURE.equals(this.table)) {
255+
if (TABLE_SYSTEM.equals(this.table) || TABLE_SECURE.equals(this.table) ||
256+
TABLE_GLOBAL.equals(this.table)) {
256257
this.where = Settings.NameValueTable.NAME + "=?";
257258
this.args = new String[] { url.getPathSegments().get(1) };
258259
} else {

0 commit comments

Comments
 (0)