From c25b9284fa3a336c69a6319feef6f0dc08dc9a49 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Thu, 2 Mar 2017 20:02:15 +0100 Subject: [PATCH] Reorganization --- .../owncloud/android/operations/RefreshFolderOperation.java | 4 ++-- src/com/owncloud/android/syncadapter/FileSyncAdapter.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/owncloud/android/operations/RefreshFolderOperation.java b/src/com/owncloud/android/operations/RefreshFolderOperation.java index 118cd6a0967f..2294f4c69b93 100644 --- a/src/com/owncloud/android/operations/RefreshFolderOperation.java +++ b/src/com/owncloud/android/operations/RefreshFolderOperation.java @@ -526,8 +526,8 @@ private void sendLocalBroadcast( } DataHolderUtil dataHolderUtil = DataHolderUtil.getInstance(); - String dataHolderItemId; - dataHolderUtil.save(dataHolderItemId = dataHolderUtil.nextItemId(), result); + String dataHolderItemId = dataHolderUtil.nextItemId(); + dataHolderUtil.save(dataHolderItemId, result); intent.putExtra(FileSyncAdapter.EXTRA_RESULT, dataHolderItemId); intent.setPackage(mContext.getPackageName()); diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index bfffed54808d..ed040eb3af35 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -376,8 +376,8 @@ private void sendLocalBroadcast(String event, String dirRemotePath, if (result != null) { DataHolderUtil dataHolderUtil = DataHolderUtil.getInstance(); - String dataHolderItemId; - dataHolderUtil.save(dataHolderItemId = dataHolderUtil.nextItemId(), result); + String dataHolderItemId = dataHolderUtil.nextItemId(); + dataHolderUtil.save(dataHolderUtil.nextItemId(), result); intent.putExtra(FileSyncAdapter.EXTRA_RESULT, dataHolderItemId); }