Fix UI
This commit is contained in:
@@ -44,7 +44,7 @@ class TetheringService : IpNeighbourMonitoringService(), VpnMonitor.Callback {
|
||||
}
|
||||
override val activeIfaces get() = synchronized(routings) { routings.keys.toList() }
|
||||
|
||||
fun updateRoutingsLocked() {
|
||||
private fun updateRoutingsLocked() {
|
||||
if (routings.isNotEmpty()) {
|
||||
val upstream = upstream
|
||||
if (upstream != null) {
|
||||
|
||||
@@ -50,11 +50,13 @@
|
||||
android:layout_row="0"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="2"
|
||||
android:layout_row="0"
|
||||
android:focusable="false"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_columnWeight="1"
|
||||
android:text="@{data.ssid}"
|
||||
tools:text="DIRECT-rA-nd0m"/>
|
||||
|
||||
@@ -67,13 +69,15 @@
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_column="2"
|
||||
android:layout_row="1"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_columnWeight="1"
|
||||
android:text="@{data.addresses}"
|
||||
android:textIsSelectable="true"
|
||||
tools:text="192.168.49.1/24\n01:23:45:ab:cd:ef"/>
|
||||
tools:text="192.168.49.1/24\nfe80::abcd:efff:1234:5678%p2p-p2p0-0/64\n01:23:45:ab:cd:ef"/>
|
||||
</GridLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -40,14 +40,14 @@
|
||||
android:text="@{client.title}"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||
android:textIsSelectable="true"
|
||||
tools:text="192.168.49.123\t\t01:23:45:ab:cd:ef"/>
|
||||
tools:text="01:23:45:ab:cd:ef%p2p-p2p0-0"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{client.description}"
|
||||
android:textIsSelectable="true"
|
||||
tools:text="Connected to p2p0"/>
|
||||
tools:text="192.168.49.123 (reachable)\nfe80::abcd:efff:1234:5678%p2p-p2p0-0 (reachable)"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
|
||||
Reference in New Issue
Block a user