Fixed warnings

This commit is contained in:
M66B
2018-12-09 15:49:43 +01:00
parent 70b5c51db9
commit d73544c584
15 changed files with 49 additions and 59 deletions

View File

@@ -48,6 +48,7 @@ import org.jsoup.nodes.Element;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -148,7 +149,8 @@ public class FragmentWebView extends FragmentEx {
fis = new FileInputStream(file);
byte[] bytes = new byte[(int) file.length()];
fis.read(bytes);
if (fis.read(bytes) != bytes.length)
throw new IOException("length");
StringBuilder sb = new StringBuilder();
sb.append("data:");