diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-05 15:29:54 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-05 15:29:54 +0000 |
commit | 43b3152d075138b11e1fe297682b3bbc775e5641 (patch) | |
tree | 3a325b0effac02fbd228b8ddf2f96589e5df72cd /java/com/android/dialer/database/DialerDatabaseHelper.java | |
parent | 2034759538273aed8a0b412d8fb90994eba1f7ea (diff) | |
parent | 300a8683b9c28424fb0f0c571a0abe128c461f69 (diff) |
Update Dialer to V10 RC16 am: 10b34a5ebf
am: 300a8683b9
Change-Id: If5695bad59f8a4dab6e6c90b54943b900bd2652a
Diffstat (limited to 'java/com/android/dialer/database/DialerDatabaseHelper.java')
-rw-r--r-- | java/com/android/dialer/database/DialerDatabaseHelper.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/com/android/dialer/database/DialerDatabaseHelper.java b/java/com/android/dialer/database/DialerDatabaseHelper.java index 234958b62..1984b9abc 100644 --- a/java/com/android/dialer/database/DialerDatabaseHelper.java +++ b/java/com/android/dialer/database/DialerDatabaseHelper.java @@ -18,6 +18,7 @@ package com.android.dialer.database; import android.content.ContentValues; import android.content.Context; +import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; @@ -63,8 +64,9 @@ public class DialerDatabaseHelper extends SQLiteOpenHelper { public static final int DATABASE_VERSION = 10; public static final String DATABASE_NAME = "dialer.db"; - public static final Uri SMART_DIAL_UPDATED_URI = - Uri.parse("content://com.android.dialer/smart_dial_updated"); + + public static final String ACTION_SMART_DIAL_UPDATED = + "com.android.dialer.database.ACTION_SMART_DIAL_UPDATED"; private static final String TAG = "DialerDatabaseHelper"; private static final boolean DEBUG = false; /** Saves the last update time of smart dial databases to shared preferences. */ @@ -798,7 +800,9 @@ public class DialerDatabaseHelper extends SQLiteOpenHelper { editor.apply(); // Notify content observers that smart dial database has been updated. - mContext.getContentResolver().notifyChange(SMART_DIAL_UPDATED_URI, null, false); + Intent intent = new Intent(ACTION_SMART_DIAL_UPDATED); + intent.setPackage(mContext.getPackageName()); + mContext.sendBroadcast(intent); } } |