Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
SanojPunchihewa committed Oct 27, 2019
1 parent 7002e2f commit 9fe967e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import com.mobilegenomics.f5n.GUIConfiguration;
import com.mobilegenomics.f5n.R;
import com.mobilegenomics.f5n.core.PipelineStep;
import com.mobilegenomics.f5n.support.Decompress;
import com.mobilegenomics.f5n.support.TimeFormat;
import com.mobilegenomics.f5n.support.ZipManager;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
Expand Down Expand Up @@ -166,8 +166,8 @@ public void onReceive(Context context, Intent intent) {
if (downloadID == id) {
Toast.makeText(DemoActivity.this, "Download Completed", Toast.LENGTH_SHORT).show();
writeToLogFile("Downloading data set completed\n");
extractZip(new File(Environment.getExternalStorageDirectory() + "/" + folderName + "/"
+ fileName));
extractZip(Environment.getExternalStorageDirectory() + "/" + folderName + "/"
+ fileName);
}
}
};
Expand All @@ -186,10 +186,10 @@ protected void onStop() {
}
}

private void extractZip(File file) {
private void extractZip(String filePath) {
writeToLogFile("Extracting data set...\n");
Decompress decompress = new Decompress(DemoActivity.this, file);
decompress.unzip();
ZipManager zipManager = new ZipManager(DemoActivity.this);
zipManager.unzip(filePath);
writeToLogFile("Extracting data set completed\n");
btnRunPipeline.setVisibility(View.VISIBLE);
}
Expand Down

0 comments on commit 9fe967e

Please sign in to comment.