send intent with filepath so details view can be updated

This commit is contained in:
Bartek Przybylski 2012-06-17 12:42:56 +02:00
parent fcf40b4423
commit 50d7b20bf6
2 changed files with 4 additions and 2 deletions

View file

@ -152,6 +152,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
}
mNotificationMngr.cancel(1);
Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);
end.putExtra(EXTRA_FILE_PATH, file.getAbsolutePath());
sendBroadcast(end);
}

View file

@ -309,9 +309,10 @@ public class FileDetailFragment extends SherlockFragment implements
private class DownloadFinishReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
updateFileDetails();
((OCFile)mIntent.getParcelableExtra(EXTRA_FILE)).setStoragePath(intent.getStringExtra(FileDownloader.EXTRA_FILE_PATH));
updateFileDetails(mIntent);
}
}
}