From d7b39a97d8b36889ce64ffa86557308b01ec7787 Mon Sep 17 00:00:00 2001 From: Irfan Omur Date: Fri, 21 Jun 2024 18:27:02 +0300 Subject: [PATCH] Replace onClick listener with lambda in ReaderPostListActivity --- .../ui/reader/ReaderPostListActivity.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListActivity.java b/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListActivity.java index 6753534814a5..ba69c23927b3 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListActivity.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListActivity.java @@ -337,17 +337,12 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) { post, site, mUploadActionUseCase.getUploadAction(post), - new View.OnClickListener() { - @Override - public void onClick(View v) { - UploadUtils.publishPost( - ReaderPostListActivity.this, - post, - site, - mDispatcher - ); - } - }); + v -> UploadUtils.publishPost( + ReaderPostListActivity.this, + post, + site, + mDispatcher + )); } } break;