Skip to content

Commit 22b1151

Browse files
Adjusting the logging when unable to expand the ICU zip file from assets
1 parent d4b83d2 commit 22b1151

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/net/sqlcipher/database/SQLiteDatabase.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ private static void loadICUData(Context context, File workingDir) {
116116
if(!icuDataFile.exists()) {
117117
ZipInputStream in = new ZipInputStream(context.getAssets().open("icudt46l.zip"));
118118
in.getNextEntry();
119-
120119
OutputStream out = new FileOutputStream(icuDataFile);
121120
byte[] buf = new byte[1024];
122121
int len;
@@ -129,7 +128,7 @@ private static void loadICUData(Context context, File workingDir) {
129128
}
130129
}
131130
catch (Exception e) {
132-
Log.e(TAG, "Error copying icu data file" + e.getMessage());
131+
Log.e(TAG, "Error copying icu data file", e);
133132
}
134133
}
135134

@@ -147,7 +146,6 @@ public static void loadLibs (Context context, File workingDir)
147146

148147
String icuRootPath = systemICUFileExists ? "/system/usr" : workingDir.getAbsolutePath();
149148
setICURoot(icuRootPath);
150-
151149
if(!systemICUFileExists){
152150
loadICUData(context, workingDir);
153151
}

0 commit comments

Comments
 (0)