mirror of
https://github.com/playmusicexporter/playmusicexporter
synced 2024-05-15 19:46:44 +00:00
#29: Add missing todos for the error logging
This commit is contained in:
parent
4941826172
commit
aa42259163
|
@ -218,6 +218,7 @@ public class MusicContainerListActivity extends AppCompatActivity
|
|||
|
||||
} catch (Exception e) {
|
||||
// Failed
|
||||
// todo: Add logging
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ public class ArtworkLoader {
|
|||
bitmap = ImageTools.decodeByteArraySubsampled(bitmapData, artworkSize, artworkSize);
|
||||
} catch (Exception e) {
|
||||
// Error
|
||||
// todo: Add logging
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -73,6 +74,7 @@ public class ArtworkLoader {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
// Error
|
||||
// todo: Add logging
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -600,14 +600,16 @@ public class PlayMusicManager {
|
|||
if (!trackWriteID3(musicTrack, fileTmp, dest)) {
|
||||
// Failed, moving without meta data
|
||||
if (!FileTools.fileMove(fileTmp, dest)) {
|
||||
// Could not copy the file
|
||||
// Could not copy the file, moving the raw file failed
|
||||
// todo: Add logging
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Moving the file
|
||||
if (!FileTools.fileMove(fileTmp, dest)) {
|
||||
// Could not copy the file
|
||||
// Could not copy the file, moving the raw file failed
|
||||
// todo: Add logging
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -635,10 +637,12 @@ public class PlayMusicManager {
|
|||
parcelFileDescriptor.close();
|
||||
|
||||
} catch (FileNotFoundException e) {
|
||||
// Could not copy the file
|
||||
// Could not copy the file, file not found
|
||||
// todo: Add logging
|
||||
return false;
|
||||
} catch (IOException e) {
|
||||
// Could not copy the file
|
||||
// Could not copy the file, failed to write the documen
|
||||
// todo: Add logging
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -800,6 +804,8 @@ public class PlayMusicManager {
|
|||
|
||||
// Checks the magic number
|
||||
if (!allAccessExporter.hasValidMagicNumber()) {
|
||||
// Failed
|
||||
// todo: Add logging
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue