Commit 3f9983e6 authored by wanglei's avatar wanglei

...

parent 2fbdfe3a
......@@ -19,7 +19,6 @@ import org.apache.poi.hwpf.usermodel.TableRow;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
......@@ -539,10 +538,8 @@ public class WordConverter {
pfs = new POIFSFileSystem(in);
hwpf = new HWPFDocument(pfs);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
......
......@@ -23,8 +23,6 @@ class PoiViewer(private var mContext: Context) {
private var mFileExt: String = ""
private var mFileCachePath: String = ""
private var mProgressDialog: ProgressDialog? = null
private lateinit var mRootView: ViewGroup
private lateinit var mWebView: WebView
......@@ -78,7 +76,7 @@ class PoiViewer(private var mContext: Context) {
mRootView = fileLayout
mFilePath = filePath
mFileExt = filePath.substring(filePath.lastIndexOf("."))
mProgressDialog!!.show()
mProgressDialog?.show()
ConvertTask().execute(filePath)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment