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() }
|
override val activeIfaces get() = synchronized(routings) { routings.keys.toList() }
|
||||||
|
|
||||||
fun updateRoutingsLocked() {
|
private fun updateRoutingsLocked() {
|
||||||
if (routings.isNotEmpty()) {
|
if (routings.isNotEmpty()) {
|
||||||
val upstream = upstream
|
val upstream = upstream
|
||||||
if (upstream != null) {
|
if (upstream != null) {
|
||||||
|
|||||||
@@ -50,11 +50,13 @@
|
|||||||
android:layout_row="0"/>
|
android:layout_row="0"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="2"
|
android:layout_column="2"
|
||||||
android:layout_row="0"
|
android:layout_row="0"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
|
android:layout_gravity="fill_horizontal"
|
||||||
|
android:layout_columnWeight="1"
|
||||||
android:text="@{data.ssid}"
|
android:text="@{data.ssid}"
|
||||||
tools:text="DIRECT-rA-nd0m"/>
|
tools:text="DIRECT-rA-nd0m"/>
|
||||||
|
|
||||||
@@ -67,13 +69,15 @@
|
|||||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"/>
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_column="2"
|
android:layout_column="2"
|
||||||
android:layout_row="1"
|
android:layout_row="1"
|
||||||
|
android:layout_gravity="fill_horizontal"
|
||||||
|
android:layout_columnWeight="1"
|
||||||
android:text="@{data.addresses}"
|
android:text="@{data.addresses}"
|
||||||
android:textIsSelectable="true"
|
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>
|
</GridLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -40,14 +40,14 @@
|
|||||||
android:text="@{client.title}"
|
android:text="@{client.title}"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||||
android:textIsSelectable="true"
|
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
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{client.description}"
|
android:text="@{client.description}"
|
||||||
android:textIsSelectable="true"
|
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>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user