Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb9b779e authored by Pinyao Ting's avatar Pinyao Ting
Browse files

log number of items deleted even when no item was deleted at all

Bug: 137678815
Change-Id: I1cf23921f863a17433ba803158e489b54c1aa35d
parent 0fd48b51
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -114,9 +114,7 @@ public class RestoreDbTask {
        }
        try {
            int itemsDeleted = db.delete(Favorites.TABLE_NAME, whereClause.toString(), profileIds);
            if (itemsDeleted > 0) {
            FileLog.d(TAG, itemsDeleted + " items from unrestored user(s) were deleted");
            }
        } catch (IllegalArgumentException exception) {
            // b/147114476
            FileLog.e(TAG, new StringBuilder("Failed to execute delete, where clause: '")