From c200566bcaec971e1756afe5ebf96baf09e88816 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 2 Jan 2019 22:44:52 +0530 Subject: Bump minSdk to 21 (#466) * Bump minSdk to 21 Signed-off-by: Harsh Shandilya * PasswordGenerator: Constify things Signed-off-by: Harsh Shandilya * Deprecate PRNG fixes The problem being fixed doesn't exist on SDK 21 and above. Signed-off-by: Harsh Shandilya * treewide: Switch to lambdas Signed-off-by: Harsh Shandilya * treewide: Formatting fixes Signed-off-by: Harsh Shandilya * treewide: Remove useless casts and add missing annotations Signed-off-by: Harsh Shandilya --- .../java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java') diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java index d155802f..f6a29113 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/FolderRecyclerAdapter.java @@ -1,8 +1,7 @@ package com.zeapo.pwdstore.utils; -import androidx.annotation.NonNull; import android.view.View; - +import androidx.annotation.NonNull; import com.zeapo.pwdstore.SelectFolderActivity; import com.zeapo.pwdstore.SelectFolderFragment; @@ -19,12 +18,9 @@ public class FolderRecyclerAdapter extends EntryRecyclerAdapter { @NonNull protected View.OnClickListener getOnClickListener(final ViewHolder holder, final PasswordItem pass) { - return new View.OnClickListener() { - @Override - public void onClick(View v) { - listener.onFragmentInteraction(pass); - notifyItemChanged(holder.getAdapterPosition()); - } + return v -> { + listener.onFragmentInteraction(pass); + notifyItemChanged(holder.getAdapterPosition()); }; } -- cgit v1.2.3