Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 189e7355 authored by Mike Reed's avatar Mike Reed
Browse files

return false if any exception is thrown from savePicture

parent 1a31ae34
Loading
Loading
Loading
Loading
+7 −8
Original line number Original line Diff line number Diff line
@@ -1254,20 +1254,19 @@ public class WebView extends AbsoluteLayout
            final FileOutputStream out = new FileOutputStream(dest);
            final FileOutputStream out = new FileOutputStream(dest);
            p.writeToStream(out);
            p.writeToStream(out);
            out.close();
            out.close();
        } catch (FileNotFoundException e){
            // now update the bundle
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (RuntimeException e) {
            e.printStackTrace();
        }
        if (dest.length() > 0) {
            b.putInt("scrollX", mScrollX);
            b.putInt("scrollX", mScrollX);
            b.putInt("scrollY", mScrollY);
            b.putInt("scrollY", mScrollY);
            b.putFloat("scale", mActualScale);
            b.putFloat("scale", mActualScale);
            b.putFloat("textwrapScale", mTextWrapScale);
            b.putFloat("textwrapScale", mTextWrapScale);
            b.putBoolean("overview", mInZoomOverview);
            b.putBoolean("overview", mInZoomOverview);
            return true;
            return true;
        } catch (FileNotFoundException e){
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (RuntimeException e) {
            e.printStackTrace();
        }
        }
        return false;
        return false;
    }
    }