Commit 3f9983e6 authored by wanglei's avatar wanglei

...

parent 2fbdfe3a
...@@ -19,7 +19,6 @@ import org.apache.poi.hwpf.usermodel.TableRow; ...@@ -19,7 +19,6 @@ import org.apache.poi.hwpf.usermodel.TableRow;
import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserException;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
...@@ -539,10 +538,8 @@ public class WordConverter { ...@@ -539,10 +538,8 @@ public class WordConverter {
pfs = new POIFSFileSystem(in); pfs = new POIFSFileSystem(in);
hwpf = new HWPFDocument(pfs); hwpf = new HWPFDocument(pfs);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -23,8 +23,6 @@ class PoiViewer(private var mContext: Context) { ...@@ -23,8 +23,6 @@ class PoiViewer(private var mContext: Context) {
private var mFileExt: String = "" private var mFileExt: String = ""
private var mFileCachePath: String = "" private var mFileCachePath: String = ""
private var mProgressDialog: ProgressDialog? = null private var mProgressDialog: ProgressDialog? = null
private lateinit var mRootView: ViewGroup private lateinit var mRootView: ViewGroup
private lateinit var mWebView: WebView private lateinit var mWebView: WebView
...@@ -78,7 +76,7 @@ class PoiViewer(private var mContext: Context) { ...@@ -78,7 +76,7 @@ class PoiViewer(private var mContext: Context) {
mRootView = fileLayout mRootView = fileLayout
mFilePath = filePath mFilePath = filePath
mFileExt = filePath.substring(filePath.lastIndexOf(".")) mFileExt = filePath.substring(filePath.lastIndexOf("."))
mProgressDialog!!.show() mProgressDialog?.show()
ConvertTask().execute(filePath) 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