CMSettings: Remove write check in query method and add values for heads up notification
Change-Id: I72ad8039757da5e66809134bdddd463c512de157
This commit is contained in:
parent
7f34720a99
commit
5c29aa4e50
|
@ -432,7 +432,6 @@ public class CMSettingsProvider extends ContentProvider {
|
|||
|
||||
int code = sUriMatcher.match(uri);
|
||||
String tableName = getTableNameFromUriMatchCode(code);
|
||||
checkWritePermissions(tableName);
|
||||
|
||||
CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
|
||||
SQLiteDatabase db = dbHelper.getReadableDatabase();
|
||||
|
|
|
@ -1367,6 +1367,9 @@ public final class CMSettings {
|
|||
public static final String HEADS_UP_NOTIFICATIONS_ENABLED =
|
||||
"heads_up_notifications_enabled";
|
||||
|
||||
/** @hide */ public static final int HEADS_UP_OFF = 0;
|
||||
/** @hide */ public static final int HEADS_UP_ON = 1;
|
||||
|
||||
// endregion
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue