Bug 754453 - BrowserProvider insert failures are silent. r=blassey

This commit is contained in:
Gian-Carlo Pascutto 2012-05-14 12:22:10 +02:00
parent ebb501820b
commit 331068a6fa

View File

@ -2156,6 +2156,13 @@ public class BrowserProvider extends ContentProvider {
db.setTransactionSuccessful();
db.endTransaction();
db.beginTransaction();
} catch (OperationApplicationException e) {
// Repeat of above.
results[i] = new ContentProviderResult(0);
failures = true;
db.setTransactionSuccessful();
db.endTransaction();
db.beginTransaction();
}
}