From eca23298566db976c3c726dbf8985dedf1545273 Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 16 Jul 2018 10:29:51 +0800 Subject: [PATCH] Refine --- build.gradle | 2 +- .../java/be/mygod/vpnhotspot/widget/AutoCollapseTextView.kt | 4 ++-- mobile/src/main/res/values-zh-rCN/strings.xml | 2 +- mobile/src/main/res/values/strings.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index eb6cd821..86882b59 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/widget/AutoCollapseTextView.kt b/mobile/src/main/java/be/mygod/vpnhotspot/widget/AutoCollapseTextView.kt index 08b95076..21d4ab2c 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/widget/AutoCollapseTextView.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/widget/AutoCollapseTextView.kt @@ -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() } } diff --git a/mobile/src/main/res/values-zh-rCN/strings.xml b/mobile/src/main/res/values-zh-rCN/strings.xml index f3b1fe31..27db152e 100644 --- a/mobile/src/main/res/values-zh-rCN/strings.xml +++ b/mobile/src/main/res/values-zh-rCN/strings.xml @@ -37,7 +37,7 @@ 模式不兼容 共享被禁用 - 管理… + 管理系统共享…