diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt index 546e36e432e..edb58cea8f1 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt @@ -92,8 +92,6 @@ class SetStatusDialogFragment : private var currentUser: User? = null private var currentStatus: Status? = null - // private lateinit var accountManager: UserAccountManager - // private lateinit var predefinedStatus: ArrayList val predefinedStatusesList = ArrayList() private lateinit var adapter: PredefinedStatusListAdapter @@ -101,15 +99,6 @@ class SetStatusDialogFragment : private var clearAt: Long? = null private lateinit var popup: EmojiPopup - // @Inject - // lateinit var arbitraryDataProvider: ArbitraryDataProvider - // - // @Inject - // lateinit var asyncRunner: AsyncRunner - // - // @Inject - // lateinit var clientFactory: ClientFactory - @Inject lateinit var ncApi: NcApi @@ -166,9 +155,6 @@ class SetStatusDialogFragment : override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - - // accountManager = (activity as BaseActivity).userAccountManager - // currentStatus?.let { binding.emoji.setText(it.icon) binding.customStatusInput.text?.clear() @@ -246,14 +232,8 @@ class SetStatusDialogFragment : binding.clearStatus.setTextColor(resources.getColor(R.color.colorPrimary)) binding.setStatus.setBackgroundColor(resources.getColor(R.color.colorPrimary)) - // ThemeButtonUtils.colorPrimaryButton(binding.setStatus, context) binding.customStatusInput.highlightColor = resources.getColor(R.color.colorPrimary) - // ThemeTextInputUtils.colorTextInput( - // binding.customStatusInputContainer, - // binding.customStatusInput, - // ThemeColorUtils.primaryColor(activity) - // ) } @Suppress("ComplexMethod") @@ -404,7 +384,6 @@ class SetStatusDialogFragment : } } - private fun setStatusMessage() { if (selectedPredefinedMessageId != null) { @@ -461,13 +440,6 @@ class SetStatusDialogFragment : } } - // private fun dismiss(boolean: Boolean) { - // if (boolean) { - // dismiss() - // } - // } - - override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { return binding.root } @@ -504,13 +476,6 @@ class SetStatusDialogFragment : } setClearStatusAfterValue(binding.clearStatusAfterSpinner.selectedItemPosition) } - // - // @VisibleForTesting - // fun setPredefinedStatus(predefinedStatus: ArrayList) { - // adapter.list = predefinedStatus - // binding.predefinedStatusList.adapter?.notifyDataSetChanged() - // } - /** * Fragment creator