Refine
This commit is contained in:
@@ -18,7 +18,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:$androidPluginVersion"
|
||||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
|
||||
classpath 'com.google.gms:google-services:4.0.1'
|
||||
classpath 'com.google.gms:google-services:4.0.2'
|
||||
classpath 'io.fabric.tools:gradle:1.25.4'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ package be.mygod.vpnhotspot.widget
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import androidx.appcompat.widget.AppCompatTextView
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.core.view.isGone
|
||||
|
||||
class AutoCollapseTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = android.R.attr.textViewStyle) :
|
||||
AppCompatTextView(context, attrs, defStyleAttr) {
|
||||
override fun onTextChanged(text: CharSequence?, start: Int, lengthBefore: Int, lengthAfter: Int) {
|
||||
super.onTextChanged(text, start, lengthBefore, lengthAfter)
|
||||
isVisible = !text.isNullOrEmpty()
|
||||
isGone = text.isNullOrEmpty()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<string name="tethering_temp_hotspot_failure_incompatible_mode">模式不兼容</string>
|
||||
<string name="tethering_temp_hotspot_failure_tethering_disallowed">共享被禁用</string>
|
||||
|
||||
<string name="tethering_manage">管理…</string>
|
||||
<string name="tethering_manage">管理系统共享…</string>
|
||||
<!--
|
||||
Values copied from:
|
||||
* https://android.googlesource.com/platform/packages/apps/Settings/+/7686ef8/res/xml/tether_prefs.xml
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<string name="tethering_temp_hotspot_failure_incompatible_mode">incompatible mode</string>
|
||||
<string name="tethering_temp_hotspot_failure_tethering_disallowed">tethering disallowed</string>
|
||||
|
||||
<string name="tethering_manage">Manage…</string>
|
||||
<string name="tethering_manage">Manage system tethering…</string>
|
||||
<string name="tethering_manage_usb">USB tethering</string>
|
||||
<string name="tethering_manage_wifi">Wi\u2011Fi hotspot</string>
|
||||
<string name="tethering_manage_wifi_legacy">Wi\u2011Fi hotspot (legacy)</string>
|
||||
|
||||
Reference in New Issue
Block a user