OSDN Git Service

Fix captive portal login ssl error overflow
authorHugo Benichi <hugobenichi@google.com>
Fri, 2 Jun 2017 01:12:09 +0000 (10:12 +0900)
committerHugo Benichi <hugobenichi@google.com>
Mon, 5 Jun 2017 02:13:06 +0000 (11:13 +0900)
commit60d5f46d89038a6a46c38ac0e57d0762a67732cb
tree10b86f865bb4ce61a58606495e17cfb6c750337e
parentd7287c96eb1a5c09abbbda460ef1518377380338
Fix captive portal login ssl error overflow

This patch fixes the built-in html page shown in the captive portal
login activity when there is an ssl error. The page is now scaled
correctly with respect to the device screen, and text wraps as
expected.

This patch also cleanups the hardcoded page by:
 - formatting it for better reading,
 - inlining the "px" css rules,
 - using string concatenation instead of format for including the
   localized text.

Bug: 62269512
Bug: 36532213
Test: manually triggered the activity to load the error page
Change-Id: I9d037222798bd9d4c1736923afb71e3e14c68bcc
packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java