mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
send intent with filepath so details view can be updated
This commit is contained in:
parent
fcf40b4423
commit
50d7b20bf6
2 changed files with 4 additions and 2 deletions
|
@ -152,6 +152,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
|
||||||
}
|
}
|
||||||
mNotificationMngr.cancel(1);
|
mNotificationMngr.cancel(1);
|
||||||
Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);
|
Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);
|
||||||
|
end.putExtra(EXTRA_FILE_PATH, file.getAbsolutePath());
|
||||||
sendBroadcast(end);
|
sendBroadcast(end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,8 @@ public class FileDetailFragment extends SherlockFragment implements
|
||||||
private class DownloadFinishReceiver extends BroadcastReceiver {
|
private class DownloadFinishReceiver extends BroadcastReceiver {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
updateFileDetails();
|
((OCFile)mIntent.getParcelableExtra(EXTRA_FILE)).setStoragePath(intent.getStringExtra(FileDownloader.EXTRA_FILE_PATH));
|
||||||
|
updateFileDetails(mIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue