Skip to content

Commit

Permalink
Lint warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Ruesga <[email protected]>
  • Loading branch information
jruesga committed Oct 20, 2016
1 parent 6767c9d commit f8df0ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/ruesga/rview/misc/PicassoHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public static List<CustomFilter> getAccountCustomFilters(Context context, Accoun
return filters;
}

@SuppressWarnings("Convert2streamapi")
public static void setAccountCustomFilters(
Context context, Account account, List<CustomFilter> filters) {
if (account == null) {
Expand Down
2 changes: 1 addition & 1 deletion artwork/ic_filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
});
}
Expand Down

0 comments on commit f8df0ce

Please sign in to comment.