From b1ee2eb1fabc5e1e5c5f498a0150b31338a37241 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Tue, 18 May 2021 22:58:47 +0200 Subject: [PATCH] make things private --- atox/src/main/kotlin/ui/chat/ChatFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atox/src/main/kotlin/ui/chat/ChatFragment.kt b/atox/src/main/kotlin/ui/chat/ChatFragment.kt index 6647bb5ce..6310740ce 100644 --- a/atox/src/main/kotlin/ui/chat/ChatFragment.kt +++ b/atox/src/main/kotlin/ui/chat/ChatFragment.kt @@ -490,7 +490,7 @@ class ChatFragment : BaseFragment(FragmentChatBinding::infl } } - fun checkRecordPermission(): Boolean = + private fun checkRecordPermission(): Boolean = ContextCompat.checkSelfPermission( requireContext(), permission.RECORD_AUDIO @@ -510,7 +510,7 @@ class ChatFragment : BaseFragment(FragmentChatBinding::infl } } - fun startTimer() = binding.run { + private fun startTimer() = binding.run { timer.apply { visibility = View.VISIBLE text = context.getString(R.string.default_timer) @@ -521,7 +521,7 @@ class ChatFragment : BaseFragment(FragmentChatBinding::infl } } - fun stopTimer() = binding.run { + private fun stopTimer() = binding.run { timer.apply { visibility = View.GONE text = context.getString(R.string.default_timer)