Skip to content

Commit

Permalink
Lint fixes!
Browse files Browse the repository at this point in the history
  • Loading branch information
roundhill committed Jan 19, 2024
1 parent e7d8ae9 commit 3183235
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ public void onBindViewHolder(@NonNull final StyleHolder holder, final int positi
public void onClick(View v) {
if (mIsPremium) {
notifyItemChanged(mSelectedPosition);
mSelectedPosition = position;
mSelectedPosition = holder.getAdapterPosition();
notifyItemChanged(mSelectedPosition);
PrefUtils.setStyleIndex(StyleActivity.this, position);
PrefUtils.setStyleIndex(StyleActivity.this, holder.getAdapterPosition());
} else if (holder.mLocked.getVisibility() == View.VISIBLE) {
showDialogLocked();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.automattic.simplenote.billing

import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down Expand Up @@ -56,6 +57,7 @@ class SubscriptionDurationAdapter :
return oldItem.offerId == newItem.offerId
}

@SuppressLint("DiffUtilEquals")
override fun areContentsTheSame(
oldItem: IapViewModel.PlansListItem,
newItem: IapViewModel.PlansListItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ public static int getThemeTextColorId(Context context) {
return 0;
}

int[] attrs = {R.attr.noteEditorTextColor};
TypedArray ta = context.obtainStyledAttributes(attrs);
TypedArray ta = context.obtainStyledAttributes(new int[]{R.attr.noteEditorTextColor});
int textColorId = ta.getResourceId(0, android.R.color.black);
ta.recycle();

Expand Down

0 comments on commit 3183235

Please sign in to comment.