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