summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSihua Ma <sihua@google.com>2023-05-30 15:01:34 -0700
committerSihua Ma <sihua@google.com>2023-05-30 15:12:00 -0700
commit48465319f6f6badd7fd5cb627d814b9f9d39b22f (patch)
tree3e840197c90a3b764f5342cbe87d87efd4f9a3e1 /src
parent749a2d2a6ad4a984025a25910369f6dd2bf56891 (diff)
downloadLauncher3-48465319f6f6badd7fd5cb627d814b9f9d39b22f.tar.gz
Possibly fix the widget restoration bug
The update will always be considered as failed because we always return 0 for all the commits. Test: N/A Bug: 234700507 Change-Id: I33ee8af996cef62dbc14349f9a7dd3cb72836ab6
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/util/ContentWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/util/ContentWriter.java b/src/com/android/launcher3/util/ContentWriter.java
index 7c5ef4db0c..9910dc2e70 100644
--- a/src/com/android/launcher3/util/ContentWriter.java
+++ b/src/com/android/launcher3/util/ContentWriter.java
@@ -106,7 +106,7 @@ public class ContentWriter {
public int commit() {
if (mCommitParams != null) {
- mCommitParams.mDbController.update(
+ return mCommitParams.mDbController.update(
Favorites.TABLE_NAME, getValues(mContext),
mCommitParams.mWhere, mCommitParams.mSelectionArgs);
}