Force sync the downloaded file to the storage after completion.
authorDennis Hsieh <yundom@gmail.com>
Mon, 29 Dec 2008 05:18:07 +0000 (13:18 +0800)
committerJean-Baptiste Queru <jbq@google.com>
Wed, 21 Jan 2009 18:57:08 +0000 (10:57 -0800)
commit6a338eb9f99486c6418596992a0de592e2e8d752
tree8c61a1afc4835292bfe43a9dd4f54112c0cf4ab8
parent59910f4a9ce953ea74c8db759448f227c96796b3
Force sync the downloaded file to the storage after completion.

This will write the downlaoded file to the storage (sdcard in default).
It can prevent file corruption if the user removes the sdcard unsafely
after a download completes.
src/com/android/providers/downloads/DownloadThread.java