diff --git a/app/src/main/java/com/example/refactoredapp/presentation/testRight/TestRightExpSample.kt b/app/src/main/java/com/example/hpos/presentation/testRight/TestRightExpSample.kt similarity index 91% rename from app/src/main/java/com/example/refactoredapp/presentation/testRight/TestRightExpSample.kt rename to app/src/main/java/com/example/hpos/presentation/testRight/TestRightExpSample.kt index d2feece..ff67192 100644 --- a/app/src/main/java/com/example/refactoredapp/presentation/testRight/TestRightExpSample.kt +++ b/app/src/main/java/com/example/hpos/presentation/testRight/TestRightExpSample.kt @@ -7,9 +7,6 @@ import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup -import android.widget.Button -import androidx.core.content.ContextCompat -import androidx.core.view.children import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import com.example.refactoredapp.R @@ -176,19 +173,19 @@ class TestRightExpSample : Fragment() { .commit() } - private fun Button.disable() { - backgroundTintList = ContextCompat.getColorStateList(requireActivity(), R.color.gray) - isClickable = false - } - - fun Button.enable() { - backgroundTintList = ContextCompat.getColorStateList(requireActivity(), R.color.purple_500) -// background.setColorFilter(Color.BLUE, PorterDuff.Mode.MULTIPLY) - isClickable = true - } - - fun View.setAllEnabled(enabled: Boolean) { - isEnabled = enabled - if (this is ViewGroup) children.forEach { child -> child.setAllEnabled(enabled) } - } +// private fun Button.disable() { +// backgroundTintList = ContextCompat.getColorStateList(requireActivity(), R.color.gray) +// isClickable = false +// } +// +// fun Button.enable() { +// backgroundTintList = ContextCompat.getColorStateList(requireActivity(), R.color.purple_500) +//// background.setColorFilter(Color.BLUE, PorterDuff.Mode.MULTIPLY) +// isClickable = true +// } +// +// fun View.setAllEnabled(enabled: Boolean) { +// isEnabled = enabled +// if (this is ViewGroup) children.forEach { child -> child.setAllEnabled(enabled) } +// } } \ No newline at end of file