diff --git a/app/src/main/java/com/ruesga/rview/misc/PicassoHelper.java b/app/src/main/java/com/ruesga/rview/misc/PicassoHelper.java index 25add225..de0004aa 100644 --- a/app/src/main/java/com/ruesga/rview/misc/PicassoHelper.java +++ b/app/src/main/java/com/ruesga/rview/misc/PicassoHelper.java @@ -15,6 +15,7 @@ */ package com.ruesga.rview.misc; +import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapShader; @@ -44,6 +45,7 @@ public class PicassoHelper { private static final String TAG = "Networking"; + @SuppressLint("StaticFieldLeak") private static Picasso sPicasso; public static Picasso getPicassoClient(Context context) { diff --git a/app/src/main/java/com/ruesga/rview/preferences/Preferences.java b/app/src/main/java/com/ruesga/rview/preferences/Preferences.java index ad9bd5b5..56284607 100644 --- a/app/src/main/java/com/ruesga/rview/preferences/Preferences.java +++ b/app/src/main/java/com/ruesga/rview/preferences/Preferences.java @@ -324,6 +324,7 @@ public static List getAccountCustomFilters(Context context, Accoun return filters; } + @SuppressWarnings("Convert2streamapi") public static void setAccountCustomFilters( Context context, Account account, List filters) { if (account == null) { diff --git a/artwork/ic_filter.svg b/artwork/ic_filter.svg index b8269a6f..4c88dcce 100644 --- a/artwork/ic_filter.svg +++ b/artwork/ic_filter.svg @@ -3,6 +3,6 @@ https://materialdesignicons.com/ Author: Austin Andrews @Templarian --> - + \ No newline at end of file diff --git a/drawer/src/main/java/com/ruesga/rview/drawer/DrawerNavigationMenuItemView.java b/drawer/src/main/java/com/ruesga/rview/drawer/DrawerNavigationMenuItemView.java index cceeaec4..baa329a5 100644 --- a/drawer/src/main/java/com/ruesga/rview/drawer/DrawerNavigationMenuItemView.java +++ b/drawer/src/main/java/com/ruesga/rview/drawer/DrawerNavigationMenuItemView.java @@ -81,12 +81,9 @@ public DrawerNavigationMenuItemView(Context context, AttributeSet attrs, int def mSubTextView = (CheckedTextView) findViewById(R.id.drawer_menu_item_subtext); mSubTextView.setDuplicateParentStateEnabled(true); - mButton.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - if (mOnMenuButtonClickListener != null) { - mOnMenuButtonClickListener.onMenuButtonClick(mItemData.getItemId()); - } + mButton.setOnClickListener(v -> { + if (mOnMenuButtonClickListener != null) { + mOnMenuButtonClickListener.onMenuButtonClick(mItemData.getItemId()); } }); }