commit | dd37043cbd52dc94142d3ceb126a7415b883d5fd | [log] [tgz] |
---|---|---|
author | bashtian <bashtian86@gmail.com> | Mon Mar 16 16:50:46 2015 -0700 |
committer | Trevor Johns <trevorjohns@google.com> | Mon Mar 16 16:50:46 2015 -0700 |
tree | 529b401a919d0f13dcc92e0f1405819c0423cff6 | |
parent | bd50166b5a87e6cdbc1c5d671023fb79538e5a1f [diff] |
Fix feed update in SyncAdapter Change-Id: Ic748b744ed2761a55b1d8ea6226ac83996dc7ddc
diff --git a/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java b/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java index da67107..78d5865 100644 --- a/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java +++ b/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java
@@ -250,9 +250,9 @@ // Update existing record Log.i(TAG, "Scheduling update: " + existingUri); batch.add(ContentProviderOperation.newUpdate(existingUri) - .withValue(FeedContract.Entry.COLUMN_NAME_TITLE, title) - .withValue(FeedContract.Entry.COLUMN_NAME_LINK, link) - .withValue(FeedContract.Entry.COLUMN_NAME_PUBLISHED, published) + .withValue(FeedContract.Entry.COLUMN_NAME_TITLE, match.title) + .withValue(FeedContract.Entry.COLUMN_NAME_LINK, match.link) + .withValue(FeedContract.Entry.COLUMN_NAME_PUBLISHED, match.published) .build()); syncResult.stats.numUpdates++; } else {