From fb9b779e9d73e833e272059a70ce79ab2b086cdd Mon Sep 17 00:00:00 2001 From: Pinyao Ting Date: Mon, 6 Jan 2020 14:10:35 -0800 Subject: [PATCH] log number of items deleted even when no item was deleted at all Bug: 137678815 Change-Id: I1cf23921f863a17433ba803158e489b54c1aa35d --- src/com/android/launcher3/provider/RestoreDbTask.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/launcher3/provider/RestoreDbTask.java b/src/com/android/launcher3/provider/RestoreDbTask.java index 36ff07e259..9987994402 100644 --- a/src/com/android/launcher3/provider/RestoreDbTask.java +++ b/src/com/android/launcher3/provider/RestoreDbTask.java @@ -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"); - } + 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: '")