android: only output unzip log message when performing the unzip.

Change-Id: I16dda180d51832569097d7dd1866ba7f56cdf876
This commit is contained in:
Thomas Martitz 2012-03-25 23:26:14 +02:00
parent c8317eb596
commit 76664d22df

View file

@ -178,16 +178,16 @@ public class RockboxService extends Service
/* use arbitrary file to determine whether extracting is needed */
File arbitraryFile = new File(rockboxCreditsPath, "credits.rock");
File rockboxInfoFile = new File(rockboxSdDirPath, "rockbox-info.txt");
boolean extractToSd = false;
if(rockboxInfoFile.exists()) {
extractToSd = true;
Logger.d("extracting resources to SD card");
}
else {
Logger.d("extracting resources to internal memory");
}
if (!arbitraryFile.exists() || (libMisc.lastModified() > arbitraryFile.lastModified()))
{
boolean extractToSd = false;
if(rockboxInfoFile.exists()) {
extractToSd = true;
Logger.d("extracting resources to SD card");
}
else {
Logger.d("extracting resources to internal memory");
}
try
{
Bundle progressData = new Bundle();