diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-06-17 13:16:02 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-06-17 13:16:02 +0200 |
| commit | 903ac4252151004f27e975384f71defbfb11f1e1 (patch) | |
| tree | 14432e7aaa19df950a324e35f3aeb4ceedfa6cab /main/src/cgeo/geocaching/utils/AngleUtils.java | |
| parent | 8821d6ace1a2dee3645e21a31d5756480b00f1f3 (diff) | |
| download | cgeo-903ac4252151004f27e975384f71defbfb11f1e1.zip cgeo-903ac4252151004f27e975384f71defbfb11f1e1.tar.gz cgeo-903ac4252151004f27e975384f71defbfb11f1e1.tar.bz2 | |
Fix #1790: use correct freshness information for pictures
On some filesystems and Android versions, the "last modified" data on
files cannot be modified after the file has been initially created.
Since we use this information to indicate that a cached image has been
refreshed, this could fail on some devices.
Now, we use a degraded version of File#setLastModified if it returns
false. This goes through an intermediate copy, but is always much more
faster than getting the file from the network connection and saving it
on the local storage.
Diffstat (limited to 'main/src/cgeo/geocaching/utils/AngleUtils.java')
0 files changed, 0 insertions, 0 deletions
