From 3114713848cb5249d6f5021e17340875d0e045e0 Mon Sep 17 00:00:00 2001 From: Neel Doshi Date: Fri, 6 Dec 2024 22:09:52 +0530 Subject: [PATCH] Linked Deprecation with Github Issue --- .../java/fr/free/nrw/commons/feedback/FeedbackDialog.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/feedback/FeedbackDialog.kt b/app/src/main/java/fr/free/nrw/commons/feedback/FeedbackDialog.kt index 7f03f4cef9..e0977c3d9f 100644 --- a/app/src/main/java/fr/free/nrw/commons/feedback/FeedbackDialog.kt +++ b/app/src/main/java/fr/free/nrw/commons/feedback/FeedbackDialog.kt @@ -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 {