mirror of
https://github.com/etesync/android
synced 2024-12-24 23:48:35 +00:00
Version bump to 0.9.1
* filter ":" and "/" from external log file names
This commit is contained in:
parent
20ee4e03f3
commit
065aa3fc84
@ -17,8 +17,8 @@ android {
|
|||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
|
|
||||||
versionCode 82
|
versionCode 83
|
||||||
versionName "0.9.0.4"
|
versionName "0.9.1"
|
||||||
|
|
||||||
buildConfigField "java.util.Date", "buildTime", "new java.util.Date()"
|
buildConfigField "java.util.Date", "buildTime", "new java.util.Date()"
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ package at.bitfire.davdroid.log;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -24,7 +26,9 @@ public class ExternalFileLogger extends CustomLogger implements Closeable {
|
|||||||
if (dir == null)
|
if (dir == null)
|
||||||
throw new IOException("External media not available for log creation");
|
throw new IOException("External media not available for log creation");
|
||||||
|
|
||||||
File log = new File(dir, name = fileName);
|
name = StringUtils.remove(StringUtils.remove(fileName, File.pathSeparatorChar), File.separatorChar);
|
||||||
|
|
||||||
|
File log = new File(dir, name);
|
||||||
writer = new PrintWriter(log);
|
writer = new PrintWriter(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user