Implement MAC lookup (#68)
* Implement MAC lookup * Refine error processing * Use long to store MAC consistently * Link back to macvendors.co * Undo some havoc * Do not show mac spans for TV * Show MAC and IP in a consistent order * Add IP spans by ipinfo.io * Add SpanFormatter * Fix IPv6 ipinfo.io link * Refine SpanFormatter * Fix pressing the link
This commit is contained in:
@@ -36,15 +36,16 @@
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
<be.mygod.vpnhotspot.widget.LinkTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{client.title}"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
||||
android:textIsSelectable="@{client.record.nickname.length() == 0}"
|
||||
android:textIsSelectable="@{client.titleSelectable}"
|
||||
tools:text="01:23:45:ab:cd:ef%p2p-p2p0-0"/>
|
||||
|
||||
<be.mygod.vpnhotspot.widget.AutoCollapseTextView
|
||||
android:id="@+id/description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{client.description}"
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
tools:text="wlan0"/>
|
||||
|
||||
<be.mygod.vpnhotspot.widget.AutoCollapseTextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{data.text}"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"/>
|
||||
|
||||
<be.mygod.vpnhotspot.widget.AutoCollapseTextView
|
||||
android:id="@+id/addresses"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{data.addresses}"
|
||||
|
||||
@@ -54,9 +54,9 @@
|
||||
<string name="tethering_manage_bluetooth">蓝牙网络共享</string>
|
||||
<string name="tethering_manage_failed">Android 系统无法打开网络共享。</string>
|
||||
|
||||
<string name="connected_state_incomplete">%s (正在连接)</string>
|
||||
<string name="connected_state_valid">%s (已连上)</string>
|
||||
<string name="connected_state_failed">%s (已断开)</string>
|
||||
<string name="connected_state_incomplete">(正在连接)</string>
|
||||
<string name="connected_state_valid">(已连上)</string>
|
||||
<string name="connected_state_failed">(已断开)</string>
|
||||
|
||||
<string name="clients_popup_nickname">昵称…</string>
|
||||
<string name="clients_popup_block">拉黑</string>
|
||||
|
||||
@@ -58,9 +58,9 @@
|
||||
<string name="tethering_manage_bluetooth">Bluetooth tethering</string>
|
||||
<string name="tethering_manage_failed">Android system has failed to start tethering.</string>
|
||||
|
||||
<string name="connected_state_incomplete">%s (connecting)</string>
|
||||
<string name="connected_state_valid">%s (reachable)</string>
|
||||
<string name="connected_state_failed">%s (lost)</string>
|
||||
<string name="connected_state_incomplete">" (connecting)"</string>
|
||||
<string name="connected_state_valid">" (reachable)"</string>
|
||||
<string name="connected_state_failed">" (lost)"</string>
|
||||
|
||||
<string name="clients_popup_nickname">Nickname…</string>
|
||||
<string name="clients_popup_block">Block</string>
|
||||
|
||||
Reference in New Issue
Block a user