summaryrefslogtreecommitdiffstats
path: root/services/voiceinteraction/java
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-08-12 17:20:07 -0700
committerSandeep Siddhartha <sansid@google.com>2014-08-13 10:52:17 -0700
commita31413a325747aa91ff8002a0975e1651ad68325 (patch)
tree5d5fc391e66794300586f13654d15be498827849 /services/voiceinteraction/java
parent2d8964cca7663b32ca339e1bb57eb4830488fb97 (diff)
downloadframeworks_base-a31413a325747aa91ff8002a0975e1651ad68325.zip
frameworks_base-a31413a325747aa91ff8002a0975e1651ad68325.tar.gz
frameworks_base-a31413a325747aa91ff8002a0975e1651ad68325.tar.bz2
Fix delete clause for sound model DB
Since UUIDs contain '-'s they need to be wrapped within quotes Bug: 16985919 Change-Id: I624a512ca7fc2494a7737b5465c94a9e161dec88
Diffstat (limited to 'services/voiceinteraction/java')
-rw-r--r--services/voiceinteraction/java/com/android/server/voiceinteraction/DatabaseHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/DatabaseHelper.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/DatabaseHelper.java
index f0ecafe..cc0d8df 100644
--- a/services/voiceinteraction/java/com/android/server/voiceinteraction/DatabaseHelper.java
+++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/DatabaseHelper.java
@@ -130,8 +130,8 @@ public class DatabaseHelper extends SQLiteOpenHelper {
synchronized(this) {
SQLiteDatabase db = getWritableDatabase();
- String soundModelClause = SoundModelContract.KEY_MODEL_UUID + "="
- + modelUuid.toString();
+ String soundModelClause = SoundModelContract.KEY_MODEL_UUID + "='"
+ + modelUuid.toString() + "'";
try {
return db.delete(SoundModelContract.TABLE, soundModelClause, null) != 0;