diff options
-rw-r--r-- | android/src/org/rockbox/RockboxService.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/android/src/org/rockbox/RockboxService.java b/android/src/org/rockbox/RockboxService.java index 5c8f8cfd99..c07ed9d328 100644 --- a/android/src/org/rockbox/RockboxService.java +++ b/android/src/org/rockbox/RockboxService.java | |||
@@ -178,16 +178,16 @@ public class RockboxService extends Service | |||
178 | /* use arbitrary file to determine whether extracting is needed */ | 178 | /* use arbitrary file to determine whether extracting is needed */ |
179 | File arbitraryFile = new File(rockboxCreditsPath, "credits.rock"); | 179 | File arbitraryFile = new File(rockboxCreditsPath, "credits.rock"); |
180 | File rockboxInfoFile = new File(rockboxSdDirPath, "rockbox-info.txt"); | 180 | File rockboxInfoFile = new File(rockboxSdDirPath, "rockbox-info.txt"); |
181 | boolean extractToSd = false; | ||
182 | if(rockboxInfoFile.exists()) { | ||
183 | extractToSd = true; | ||
184 | Logger.d("extracting resources to SD card"); | ||
185 | } | ||
186 | else { | ||
187 | Logger.d("extracting resources to internal memory"); | ||
188 | } | ||
189 | if (!arbitraryFile.exists() || (libMisc.lastModified() > arbitraryFile.lastModified())) | 181 | if (!arbitraryFile.exists() || (libMisc.lastModified() > arbitraryFile.lastModified())) |
190 | { | 182 | { |
183 | boolean extractToSd = false; | ||
184 | if(rockboxInfoFile.exists()) { | ||
185 | extractToSd = true; | ||
186 | Logger.d("extracting resources to SD card"); | ||
187 | } | ||
188 | else { | ||
189 | Logger.d("extracting resources to internal memory"); | ||
190 | } | ||
191 | try | 191 | try |
192 | { | 192 | { |
193 | Bundle progressData = new Bundle(); | 193 | Bundle progressData = new Bundle(); |