Bug 1314563 - Change state icon and message when url icon is clicked r=sebastian
authorNevin Chen <cnevinchen@gmail.com>
Mon, 21 Nov 2016 16:32:10 +0800
changeset 324235 dfa353352f30da222393cfd72a420ef26d556ebd
parent 324234 36c0196cf2ef2b1753e464a1d29621003c3d7e2c
child 324236 508d7a0ac7a005df7a4765ebd449506b2b639b54
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerssebastian
bugs1314563
milestone53.0a1
Bug 1314563 - Change state icon and message when url icon is clicked r=sebastian MozReview-Commit-ID: 5KDVFVse9Tu
mobile/android/base/java/org/mozilla/gecko/toolbar/SiteIdentityPopup.java
--- a/mobile/android/base/java/org/mozilla/gecko/toolbar/SiteIdentityPopup.java
+++ b/mobile/android/base/java/org/mozilla/gecko/toolbar/SiteIdentityPopup.java
@@ -358,16 +358,24 @@ public class SiteIdentityPopup extends A
                 clearSecurityStateIcon();
 
                 mMixedContentActivity.setVisibility(View.GONE);
                 mLink.setVisibility(View.GONE);
             }
 
             mSecurityState.setText(R.string.identity_connection_insecure);
             mSecurityState.setTextColor(ContextCompat.getColor(mContext, R.color.placeholder_active_grey));
+
+        } else if (siteIdentity.isSecurityException()) {
+
+            mIcon.setImageResource(R.drawable.lock_inactive);
+            setSecurityStateIcon(R.drawable.warning_major, 1);
+            mSecurityState.setText(R.string.identity_connection_insecure);
+            mSecurityState.setTextColor(ContextCompat.getColor(mContext, R.color.placeholder_active_grey));
+
         } else {
             // Connection is secure.
             mIcon.setImageResource(R.drawable.lock_secure);
 
             setSecurityStateIcon(R.drawable.img_check, 2);
             mSecurityState.setTextColor(ContextCompat.getColor(mContext, R.color.affirmative_green));
             mSecurityState.setText(R.string.identity_connection_secure);