mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061337 - Error when bookmarking a link with no title. r=ckitching
This commit is contained in:
parent
e55c4025be
commit
8b4a746652
@ -951,7 +951,10 @@ public class LocalBrowserDB {
|
||||
private void addBookmarkItem(ContentResolver cr, String title, String uri, long folderId) {
|
||||
final long now = System.currentTimeMillis();
|
||||
ContentValues values = new ContentValues();
|
||||
values.put(Browser.BookmarkColumns.TITLE, title);
|
||||
if (title != null) {
|
||||
values.put(Browser.BookmarkColumns.TITLE, title);
|
||||
}
|
||||
|
||||
values.put(Bookmarks.URL, uri);
|
||||
values.put(Bookmarks.PARENT, folderId);
|
||||
values.put(Bookmarks.DATE_MODIFIED, now);
|
||||
|
Loading…
Reference in New Issue
Block a user