File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/info/guardianproject/database/sqlcipher Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 40
40
import java .util .WeakHashMap ;
41
41
import java .util .concurrent .locks .ReentrantLock ;
42
42
import java .util .regex .Pattern ;
43
+ import java .util .zip .ZipInputStream ;
44
+ import java .util .zip .ZipOutputStream ;
43
45
44
46
import android .content .ContentValues ;
45
47
import android .content .Context ;
@@ -82,8 +84,10 @@ private static void loadICUData(Context context) {
82
84
if (!icuDir .exists ()) icuDir .mkdirs ();
83
85
File icuDataFile = new File (icuDir , "icudt44l.dat" );
84
86
if (!icuDataFile .exists ()) {
85
- InputStream in = context .getAssets ().open ("icudt44l.mp3" );
86
- OutputStream out = new FileOutputStream (icuDataFile );
87
+ ZipInputStream in = new ZipInputStream (context .getAssets ().open ("icudt44l.zip" ));
88
+ in .getNextEntry ();
89
+
90
+ OutputStream out = new FileOutputStream (icuDataFile );
87
91
byte [] buf = new byte [1024 ];
88
92
int len ;
89
93
while ((len = in .read (buf )) > 0 ) {
You can’t perform that action at this time.
0 commit comments