AppDetails: Do not hide textviews

This commit is contained in:
Rahul Patel
2024-12-16 22:20:40 +05:30
parent 9540ac0c3b
commit dc20fbd67c
2 changed files with 5 additions and 17 deletions

View File

@@ -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
}
}