Linked Deprecation with Github Issue

This commit is contained in:
Neel Doshi 2024-12-06 22:09:52 +05:30
parent d679b4f2c7
commit 3114713848

View file

@ -23,7 +23,8 @@ class FeedbackDialog(
private val onFeedbackSubmitCallback: OnFeedbackSubmitCallback) : Dialog(context) {
private var _binding: DialogFeedbackBinding? = null
private val binding get() = _binding!!
// TODO("Remove Deprecation") //'fromHtml(String!): Spanned!' is deprecated. Deprecated in Java
// TODO("Remove Deprecation") Issue : #6002
// 'fromHtml(String!): Spanned!' is deprecated. Deprecated in Java
@Suppress("DEPRECATION")
private var feedbackDestinationHtml: Spanned = Html.fromHtml(
context.getString(R.string.feedback_destination_note))
@ -35,7 +36,8 @@ class FeedbackDialog(
setContentView(binding.root)
binding.feedbackDestination.text = feedbackDestinationHtml
binding.feedbackDestination.movementMethod = LinkMovementMethod.getInstance()
// TODO("DEPRECATION") // 'SOFT_INPUT_ADJUST_RESIZE: Int' is deprecated. Deprecated in Java
// TODO("DEPRECATION") Issue : #6002
// 'SOFT_INPUT_ADJUST_RESIZE: Int' is deprecated. Deprecated in Java
@Suppress("DEPRECATION")
window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
binding.btnSubmitFeedback.setOnClickListener {