diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:53 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:55 +0200 |
commit | 57074a76937412d57d0260449edee47e016bc510 (patch) | |
tree | 64935ffa1e821f220cd6362f594f26b6f39381a4 /main/src/cgeo/geocaching/files | |
parent | 4fd81318fb41f4e53e5c56aaf84d531d8b385c69 (diff) | |
download | cgeo-57074a76937412d57d0260449edee47e016bc510.zip cgeo-57074a76937412d57d0260449edee47e016bc510.tar.gz cgeo-57074a76937412d57d0260449edee47e016bc510.tar.bz2 |
Remove comparisons to booleans
Diffstat (limited to 'main/src/cgeo/geocaching/files')
-rw-r--r-- | main/src/cgeo/geocaching/files/LocalStorage.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/files/LocalStorage.java b/main/src/cgeo/geocaching/files/LocalStorage.java index 13b2f3a..1b98913 100644 --- a/main/src/cgeo/geocaching/files/LocalStorage.java +++ b/main/src/cgeo/geocaching/files/LocalStorage.java @@ -218,4 +218,13 @@ public class LocalStorage { return true; } + /** + * Check if an external media (SD card) is available for use. + * + * @return true if the external media is properly mounted + */ + public static boolean isExternalStorageAvailable() { + return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); + } + } |