Skip to content

Commit

Permalink
Reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
mario committed Mar 2, 2017
1 parent 1e310b0 commit c25b928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions src/com/owncloud/android/syncadapter/FileSyncAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c25b928

Please sign in to comment.