From d7446694184688ce526dd56ac898fef1b65225c6 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Tue, 10 Jan 2012 00:28:48 -0800 Subject: [PATCH] Bug 716811 - Local DB calls getAsBoolean for IS_FOLDER, schema uses integers, ClassCastException results. r=blassey --- mobile/android/base/db/BrowserProvider.java.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/base/db/BrowserProvider.java.in b/mobile/android/base/db/BrowserProvider.java.in index 4333fb39fae..d2746507e74 100644 --- a/mobile/android/base/db/BrowserProvider.java.in +++ b/mobile/android/base/db/BrowserProvider.java.in @@ -693,7 +693,7 @@ public class BrowserProvider extends ContentProvider { String url = values.getAsString(Bookmarks.URL); ContentValues imageValues = extractImageValues(values, url); - Boolean isFolder = values.getAsBoolean(Bookmarks.IS_FOLDER); + Boolean isFolder = values.getAsInteger(Bookmarks.IS_FOLDER) == 1; if ((isFolder == null || !isFolder) && imageValues != null && !TextUtils.isEmpty(url)) {