1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-02-26 16:37:58 +01:00

Fixed text visibility

This commit is contained in:
Nite 2022-01-14 19:36:05 +01:00
parent f68b46678a
commit 5e24c3ab40
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1

View File

@ -6,6 +6,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
@ -67,6 +68,8 @@ class EditServerFragment : Fragment(), OnBackPressedHandler {
private var currentColor: Int = 0
private var selectedColor: Int? = null
private var editServerColorText: TextView? = null
@Override
override fun onCreate(savedInstanceState: Bundle?) {
Util.applyTheme(this.context)
@ -94,6 +97,7 @@ class EditServerFragment : Fragment(), OnBackPressedHandler {
jukeboxSwitch = view.findViewById(R.id.edit_jukebox)
saveButton = view.findViewById(R.id.edit_save)
testButton = view.findViewById(R.id.edit_test)
editServerColorText = view.findViewById(R.id.edit_server_color_text)
val index = arguments?.getInt(
EDIT_SERVER_INTENT_INDEX,
@ -182,6 +186,7 @@ class EditServerFragment : Fragment(), OnBackPressedHandler {
// }
serverColorImageView?.isVisible = false
editServerColorText?.isVisible = false
}
@Suppress("unused")