Skip to content

Commit ee44077

Browse files
committed
fix
1 parent 4c27962 commit ee44077

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/src/androidTest/java/at/tomtasche/reader/test/CoreTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ private static void copy(InputStream src, File dst) throws IOException {
6464
@Test
6565
public void test() {
6666
File cacheDir = InstrumentationRegistry.getInstrumentation().getTargetContext().getCacheDir();
67-
File outputDir = new File(cacheDir, "output");
67+
File outputPath = new File(cacheDir, "core_output");
68+
File cachePath = new File(cacheDir, "core_cache");
6869

6970
CoreWrapper.CoreOptions coreOptions = new CoreWrapper.CoreOptions();
7071
coreOptions.inputPath = m_testFile.getAbsolutePath();
71-
coreOptions.outputPath = outputDir.getPath();
72+
coreOptions.outputPath = outputPath.getPath();
73+
coreOptions.cachePath = cachePath.getPath();
7274
coreOptions.editable = true;
7375

7476
CoreWrapper.CoreResult coreResult = CoreWrapper.parse(coreOptions);

app/src/main/java/at/tomtasche/reader/background/RawLoader.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class RawLoader extends FileLoader {
2121
private static final String[] MIME_BLACKLIST = {"image/vnd.dwg", "image/g3fax", "image/tiff", "image/vnd.djvu", "image/x-eps", "image/x-tga", "image/x-tga", "audio/amr", "video/3gpp", "video/quicktime", "text/calendar", "text/vcard", "text/rtf"};
2222

2323
private CoreWrapper lastCore;
24-
private CoreWrapper.CoreOptions lastCoreOptions;
2524

2625
public RawLoader(Context context) {
2726
super(context, LoaderType.RAW);
@@ -142,8 +141,6 @@ public void loadSync(Options options) {
142141
coreOptions.txt = true;
143142
coreOptions.pdf = false;
144143

145-
lastCoreOptions = coreOptions;
146-
147144
CoreWrapper.CoreResult coreResult = lastCore.parse(coreOptions);
148145
if (coreResult.exception != null) {
149146
throw coreResult.exception;

0 commit comments

Comments
 (0)