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

Commit e354bba5 authored by Mike Reed's avatar Mike Reed Committed by Android (Google) Code Review
Browse files

Merge "return false if any exception is thrown from savePicture"

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