Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on May 20, 2015
  1. Implement shouldOverrideUrlLoading to open hyperlink on HTMLViewer.

    eui-sang.lim authored
    Since WebViewClient was set to WebView, hyperlink has not been working
    on HTMLViewer because WebViewClient has empty shouldOverrideUrlLoading.
    Therefore, copied shouldOverrideUrlLoading from in Android WebView
    Change-Id: I8ad0584c72be2f96ff88901f6d031144d4a98b38
    Signed-off-by: Euisang Lim <>
Commits on Nov 18, 2014
  1. Restore zoom controls in HTMLViewer

    Mikhail Naganov authored
    WebSettings.setBuiltInZoomControls must be set to 'true' for zoom
    controls and pinch-zooming to work. And then we need to call
    WebSettings.setDisplayZoomControls(false) to leave only pinch-zoom.
    Bug: 18403885
    Change-Id: I549fc11673096046212f8c8efaf65824d1000ad7
Commits on Nov 14, 2014
  1. @jsharkey

    Modernize HTMLViewer, offer to decompress.

    jsharkey authored
    Spruce up the UI to match Material spec.  We can also load file://
    content directly instead of forcing through a ContentProvider.
    Since we're using this to show license content, try decompressing
    files that end in ".gz", but fall back to loading normally if it's
    not compressed.  Let callers provide a window title.
    Bug: 18376908
    Change-Id: I59ce02fb17fbe157239d365417a1a1e88e2a18d4
Commits on Jul 24, 2014
  1. Do not crash on opening a directory.

    Ben Murdoch authored
    Bug: 16542465
    Change-Id: Ic062defe3ba4d69020968cb2c85bf9dc52268ec8
Commits on Mar 26, 2014
  1. Update HTMLViewer to use utf-8 text encoding.

    Ben Murdoch authored
    By default, WebView will use Latin-1 encoding.
    Patch courtesy of Takeshi Aimi.
    Bug: 13214875
    Change-Id: I16d3bf91904b617fd25c98d68771330c01055f18
Commits on Mar 17, 2014
  1. Revert "HTMLViewer: allow encoding to be specified in incoming Intent."

    Ben Murdoch authored
    We are going to unconditionally go for UTF-8 going forward.
    This reverts commit 3b1632a.
    Change-Id: Ib8792c613c0d30b2097e125ea7c3bdaf6d737fd5
Commits on Feb 28, 2014
  1. HTMLViewer: allow encoding to be specified in incoming Intent.

    Ben Murdoch authored
    Change-Id: I7eb9857e9f6d3f640c6264da98681d065e22527f
  2. Clean up whitespace.

    Ben Murdoch authored
    Change-Id: Ib1b38186027244c1218fab0d1c81400b9ad570a3
Commits on Dec 4, 2013
  1. Do not add mimetype to url as a query parameter

    Selim Gurun authored
    Bug: 11654127
    Adding mimetype to url as a query parameter is a bad practice as
    it requires us to inject app specific behavior to webview. There
    also seems no reason to add this, so removing.
    Change-Id: Ib2e5198981f2d37128ab545a33b83e8109bf3eef
Commits on Sep 19, 2013
  1. Enable zoom controls in HTMLViewer

    Mikhail Naganov authored
    Due to changes in Chromium WebView, text files may be displayed
    using a smaller font, not comfortable for reading. Enabling zoom
    controls serves as a workaround. This also puts HTMLViewer
    on par with DocViewer (for office files), which also allows
    zooming of contents.
    BUG: 10674904
    Change-Id: I806fbed103e6f714824f69d78e681ee96f142d42
Commits on Jul 3, 2013
  1. Don't call WebView.stopLoading() from onStop()

    Ben Murdoch authored
    If the app is opened while the screen is off, the call to
    WebView.stopLoading can cause the load triggered by onCreate to
    stop - never being resumed or restarted, resulting in no content.
    Change-Id: I7f19cbbe4d9dc735ed976798ccf783bbf42c8c8f
Commits on Aug 30, 2012
  1. @kennethandersson

    HTMLViewer could not open UTF-8 encoded file path.

    Alex Hua authored kennethandersson committed
    HTMLViewer got encoded file path in onCreate but did not decode
    the path when opening it. This caused a problem when the file path
    contained non-ASCII codes like Chinese, Japanese or Korean.
    Change-Id: I50dd611fc6da9b854c19ff5752785ae710f3b33d
Commits on Nov 22, 2010
  1. Hide the content provider and enforce the calling identity.

    Patrick Scott authored
    Bug: 3215801
    Change-Id: Iee444f04141c3f35127cfc264d418ce7d8f1c617
Commits on Sep 4, 2009
Commits on Mar 4, 2009
  1. auto import from //depot/cupcake/@135843

    The Android Open Source Project authored
  2. auto import from //depot/cupcake/@135843

    The Android Open Source Project authored
Commits on Dec 18, 2008
  1. Code drop from //branches/cupcake/...@124589

    The Android Open Source Project authored
Commits on Oct 21, 2008
  1. Initial Contribution

    The Android Open Source Project authored
Something went wrong with that request. Please try again.