AppDetails: Do not hide textviews
This commit is contained in:
@@ -21,7 +21,6 @@ package com.aurora.extensions
|
||||
|
||||
import android.view.View
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import android.widget.TextView
|
||||
import androidx.core.content.getSystemService
|
||||
|
||||
fun View.isVisible() = visibility == View.VISIBLE
|
||||
@@ -52,13 +51,3 @@ fun View.hideKeyboard(): Boolean {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
fun TextView.updateText(text: String?) {
|
||||
if (text.isNullOrEmpty()) {
|
||||
hide()
|
||||
} else {
|
||||
show()
|
||||
this.text = text
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user