mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
delete comments
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
45cfbc7257
commit
ea634ff43c
@ -92,8 +92,6 @@ class SetStatusDialogFragment :
|
|||||||
private var currentUser: User? = null
|
private var currentUser: User? = null
|
||||||
private var currentStatus: Status? = null
|
private var currentStatus: Status? = null
|
||||||
|
|
||||||
// private lateinit var accountManager: UserAccountManager
|
|
||||||
// private lateinit var predefinedStatus: ArrayList<PredefinedStatus>
|
|
||||||
val predefinedStatusesList = ArrayList<PredefinedStatus>()
|
val predefinedStatusesList = ArrayList<PredefinedStatus>()
|
||||||
|
|
||||||
private lateinit var adapter: PredefinedStatusListAdapter
|
private lateinit var adapter: PredefinedStatusListAdapter
|
||||||
@ -101,15 +99,6 @@ class SetStatusDialogFragment :
|
|||||||
private var clearAt: Long? = null
|
private var clearAt: Long? = null
|
||||||
private lateinit var popup: EmojiPopup
|
private lateinit var popup: EmojiPopup
|
||||||
|
|
||||||
// @Inject
|
|
||||||
// lateinit var arbitraryDataProvider: ArbitraryDataProvider
|
|
||||||
//
|
|
||||||
// @Inject
|
|
||||||
// lateinit var asyncRunner: AsyncRunner
|
|
||||||
//
|
|
||||||
// @Inject
|
|
||||||
// lateinit var clientFactory: ClientFactory
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
lateinit var ncApi: NcApi
|
lateinit var ncApi: NcApi
|
||||||
|
|
||||||
@ -166,9 +155,6 @@ class SetStatusDialogFragment :
|
|||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
|
|
||||||
// accountManager = (activity as BaseActivity).userAccountManager
|
|
||||||
//
|
|
||||||
currentStatus?.let {
|
currentStatus?.let {
|
||||||
binding.emoji.setText(it.icon)
|
binding.emoji.setText(it.icon)
|
||||||
binding.customStatusInput.text?.clear()
|
binding.customStatusInput.text?.clear()
|
||||||
@ -246,14 +232,8 @@ class SetStatusDialogFragment :
|
|||||||
|
|
||||||
binding.clearStatus.setTextColor(resources.getColor(R.color.colorPrimary))
|
binding.clearStatus.setTextColor(resources.getColor(R.color.colorPrimary))
|
||||||
binding.setStatus.setBackgroundColor(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)
|
binding.customStatusInput.highlightColor = resources.getColor(R.color.colorPrimary)
|
||||||
// ThemeTextInputUtils.colorTextInput(
|
|
||||||
// binding.customStatusInputContainer,
|
|
||||||
// binding.customStatusInput,
|
|
||||||
// ThemeColorUtils.primaryColor(activity)
|
|
||||||
// )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("ComplexMethod")
|
@Suppress("ComplexMethod")
|
||||||
@ -404,7 +384,6 @@ class SetStatusDialogFragment :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun setStatusMessage() {
|
private fun setStatusMessage() {
|
||||||
if (selectedPredefinedMessageId != null) {
|
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 {
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
|
||||||
return binding.root
|
return binding.root
|
||||||
}
|
}
|
||||||
@ -504,13 +476,6 @@ class SetStatusDialogFragment :
|
|||||||
}
|
}
|
||||||
setClearStatusAfterValue(binding.clearStatusAfterSpinner.selectedItemPosition)
|
setClearStatusAfterValue(binding.clearStatusAfterSpinner.selectedItemPosition)
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// @VisibleForTesting
|
|
||||||
// fun setPredefinedStatus(predefinedStatus: ArrayList<PredefinedStatus>) {
|
|
||||||
// adapter.list = predefinedStatus
|
|
||||||
// binding.predefinedStatusList.adapter?.notifyDataSetChanged()
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fragment creator
|
* Fragment creator
|
||||||
|
Loading…
Reference in New Issue
Block a user