Skip to content

Commit 8d40bfe

Browse files
committed
Tweak the user-only connection status UI to make it clearer
1 parent bebafb0 commit 8d40bfe

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

app/src/main/res/layout/connection_status_user.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
android:text=""
1515
android:layout_marginBottom="24sp" />
1616

17+
<com.google.android.material.card.MaterialCardView
18+
style="@style/ConnectionStatusCard"
19+
android:layout_width="match_parent"
20+
android:layout_height="wrap_content">
21+
22+
<TextView
23+
style="@style/ConnectionStatusHeading"
24+
android:drawableStart="@drawable/ic_check_circle"
25+
android:text="@string/user_connection_status_enabled_heading" />
26+
27+
</com.google.android.material.card.MaterialCardView>
28+
1729
<com.google.android.material.card.MaterialCardView
1830
style="@style/ConnectionStatusCard"
1931
android:layout_width="match_parent"
@@ -26,27 +38,15 @@
2638

2739
<TextView
2840
style="@style/ConnectionStatusHeading"
29-
android:drawableStart="@drawable/ic_check_circle"
30-
android:text="@string/user_connection_status_enabled_heading" />
41+
android:drawableStart="@drawable/ic_exclamation_triangle"
42+
android:text="@string/system_connection_status_disabled_heading" />
3143

3244
<TextView
3345
style="@style/ConnectionStatusText"
3446
android:layout_width="wrap_content"
3547
android:layout_height="wrap_content"
3648
android:text="@string/user_connection_status_details" />
3749
</LinearLayout>
38-
39-
</com.google.android.material.card.MaterialCardView>
40-
41-
<com.google.android.material.card.MaterialCardView
42-
style="@style/ConnectionStatusCard"
43-
android:layout_width="match_parent"
44-
android:layout_height="wrap_content">
45-
46-
<TextView
47-
style="@style/ConnectionStatusHeading"
48-
android:drawableStart="@drawable/ic_exclamation_triangle"
49-
android:text="@string/system_connection_status_disabled_heading" />
5050
</com.google.android.material.card.MaterialCardView>
5151

5252
</android.widget.LinearLayout>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</string>
3737

3838
<string name="user_connection_status_details">
39-
HTTPS traffic may not be intercepted from all apps, unless they are configured to trust user-installed certificates.
39+
HTTPS traffic will only be intercepted from apps that are configured to trust user-installed certificates.
4040
</string>
4141
<string name="system_connection_status_details">
4242
Traffic will be intercepted from all installed applications, except those using explicit certificate pinning.

0 commit comments

Comments
 (0)