diff options
author | Jeff Hamilton <jham@android.com> | 2010-10-04 14:09:09 -0500 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2010-10-04 14:09:09 -0500 |
commit | 3d4e011ab9f87ff7f1b467ed7d92c6d89157d192 (patch) | |
tree | 2fb4c631acebd1f18dab9a31ddd3cf55e11d92f9 /src/com/android/browser/provider | |
parent | 175ab30554bdae7a64b04cb37098b2116d212973 (diff) | |
download | packages_apps_Browser-3d4e011ab9f87ff7f1b467ed7d92c6d89157d192.zip packages_apps_Browser-3d4e011ab9f87ff7f1b467ed7d92c6d89157d192.tar.gz packages_apps_Browser-3d4e011ab9f87ff7f1b467ed7d92c6d89157d192.tar.bz2 |
Send change notifications for the default folder.
The notification URI wasn't being set
properly for queries on the default folder.
Bug: 3013098
Change-Id: I6418c5189b88888b3a588c7264b3f9f56ec95d78
Diffstat (limited to 'src/com/android/browser/provider')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index b73927a..a7545d4 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -618,7 +618,12 @@ public class BrowserProvider2 extends SQLiteContentProvider { }; } - return db.rawQuery(query, args); + Cursor cursor = db.rawQuery(query, args); + if (cursor != null) { + cursor.setNotificationUri(getContext().getContentResolver(), + BrowserContract.AUTHORITY_URI); + } + return cursor; } case HISTORY_ID: { |