minor refactoring
This commit is contained in:
parent
b0e786a6b6
commit
7c61a915dc
1 changed files with 3 additions and 2 deletions
|
@ -86,8 +86,9 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter<ProfileViewHolder>
|
|||
new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (holder.getAdapterPosition() != RecyclerView.NO_POSITION) {
|
||||
Object o = items.get(holder.getAdapterPosition());
|
||||
int pos = holder.getAdapterPosition();
|
||||
if ( pos != RecyclerView.NO_POSITION) {
|
||||
Object o = items.get(pos);
|
||||
if (o instanceof ApplicationMode) {
|
||||
final ApplicationMode item = (ApplicationMode) o;
|
||||
int iconRes = item.getParent() == null
|
||||
|
|
Loading…
Reference in a new issue