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

Commit 48465319 authored by Sihua Ma's avatar Sihua Ma
Browse files

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
parent 749a2d2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
        }