Skip to content

Commit ea0894a

Browse files
committed
Convert View.OnClickListener() to lambda
1 parent d865f8e commit ea0894a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,12 +1128,9 @@ public void onShowCustomEmptyView(EmptyViewMessageType emptyViewMsgType) {
11281128
// bar that appears at top after new posts are loaded
11291129
mNewPostsBar = rootView.findViewById(R.id.layout_new_posts);
11301130
mNewPostsBar.setVisibility(View.GONE);
1131-
mNewPostsBar.setOnClickListener(new View.OnClickListener() {
1132-
@Override
1133-
public void onClick(View view) {
1134-
mRecyclerView.scrollRecycleViewToPosition(0);
1135-
refreshPosts();
1136-
}
1131+
mNewPostsBar.setOnClickListener(view -> {
1132+
mRecyclerView.scrollRecycleViewToPosition(0);
1133+
refreshPosts();
11371134
});
11381135

11391136
// progress bar that appears when loading more posts

0 commit comments

Comments
 (0)