From 78a2b0966028747ee0a615cfe2fa8690c0c52a64 Mon Sep 17 00:00:00 2001 From: Jarvis Lin Date: Thu, 6 Jun 2024 18:31:38 +0200 Subject: [PATCH] Fix lint issues --- .../android/ui/comments/CommentDetailFragment.java | 2 -- .../ui/comments/unified/CommentActionPopupHandler.kt | 1 - .../ui/notifications/NotificationsDetailListFragment.kt | 6 ++++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java index 564aa31b2075..7d9856428fcc 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/comments/CommentDetailFragment.java @@ -43,7 +43,6 @@ import org.wordpress.android.fluxc.tools.FluxCImageLoader; import org.wordpress.android.fluxc.tools.FormattableContentMapper; import org.wordpress.android.models.Note; -import org.wordpress.android.models.Note.EnabledActions; import org.wordpress.android.models.UserSuggestion; import org.wordpress.android.models.usecases.LocalCommentCacheUpdateHandler; import org.wordpress.android.ui.ActivityId; @@ -81,7 +80,6 @@ import org.wordpress.android.util.image.ImageManager; import org.wordpress.android.util.image.ImageType; -import java.util.EnumSet; import java.util.List; import javax.inject.Inject; diff --git a/WordPress/src/main/java/org/wordpress/android/ui/comments/unified/CommentActionPopupHandler.kt b/WordPress/src/main/java/org/wordpress/android/ui/comments/unified/CommentActionPopupHandler.kt index 77df41a02e8a..8725bc84d8a5 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/comments/unified/CommentActionPopupHandler.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/comments/unified/CommentActionPopupHandler.kt @@ -8,7 +8,6 @@ import android.widget.PopupWindow import org.wordpress.android.R import org.wordpress.android.databinding.CommentActionsBinding import org.wordpress.android.ui.comments.CommentDetailFragment -import org.wordpress.android.util.ToastUtils object CommentActionPopupHandler { @JvmStatic diff --git a/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsDetailListFragment.kt b/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsDetailListFragment.kt index 0231f497cf73..db32e4a6f641 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsDetailListFragment.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsDetailListFragment.kt @@ -195,7 +195,9 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment { this.footerView = footerView } - private val mOnNoteBlockTextClickListener by lazy { NoteBlockTextClickListener(this, notification, onActionClickListener) } + private val mOnNoteBlockTextClickListener by lazy { + NoteBlockTextClickListener(this, notification, onActionClickListener) + } private val mOnGravatarClickedListener = object : OnGravatarClickedListener { override fun onGravatarClicked(siteId: Long, userId: Long, siteUrl: String?) { @@ -531,7 +533,7 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment { } } - fun setOnEditCommentListener(listener: CommentDetailFragment.OnActionClickListener){ + fun setOnEditCommentListener(listener: CommentDetailFragment.OnActionClickListener) { onActionClickListener = listener }