Fix many lint checks

This commit is contained in:
Sylvia van Os
2020-12-01 21:33:36 +01:00
parent 13ea10d0b0
commit 8d4a122cb5
22 changed files with 41 additions and 170 deletions

View File

@@ -15,14 +15,11 @@ import protect.card_locker.preferences.Settings;
class LoyaltyCardCursorAdapter extends CursorAdapter
{
Settings settings;
boolean darkModeEnabled;
public LoyaltyCardCursorAdapter(Context context, Cursor cursor)
{
super(context, cursor, 0);
settings = new Settings(context);
darkModeEnabled= MainActivity.isDarkModeEnabled(context);
}
// The newView method is used to inflate a new view and return it,
@@ -44,11 +41,6 @@ class LoyaltyCardCursorAdapter extends CursorAdapter
TextView noteField = view.findViewById(R.id.note);
ImageView star = view.findViewById(R.id.star);
if(darkModeEnabled)
{
star.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP);
}
// Extract properties from cursor
LoyaltyCard loyaltyCard = LoyaltyCard.toLoyaltyCard(cursor);