Skip to content

Commit

Permalink
Merge pull request #103 from firefinchdev/master
Browse files Browse the repository at this point in the history
Fix: DropletCreateActivity crash - Fedora Atomic unhandled
  • Loading branch information
championswimmer authored Jul 25, 2018
2 parents 039bb50 + 85744d8 commit a598ff3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

@Override
public void onBindViewHolder(final ViewHolder holder, final int position) {

holder.imageName.setText(imageList.get(position).getName());
this.position = holder.getAdapterPosition();
holder.imageDistribution.setText(imageList.get(position).getDistribution());
Expand Down Expand Up @@ -99,6 +100,9 @@ public void selectImage(int position, ViewHolder holder) {
case "Fedora":
selectorImage = R.drawable.fedora_selected;
break;
case "Fedora Atomic":
selectorImage = R.drawable.fedora_selected;
break;
case "Debian":
selectorImage = R.drawable.debian_selected;
break;
Expand Down Expand Up @@ -126,6 +130,9 @@ public void deselectImage(int position, ViewHolder holder) {
case "Fedora":
holder.imageImage.setBackground(ContextCompat.getDrawable(context, R.drawable.fedora));
break;
case "Fedora Atomic":
holder.imageImage.setBackground(ContextCompat.getDrawable(context, R.drawable.fedora));
break;
case "Debian":
holder.imageImage.setBackground(ContextCompat.getDrawable(context, R.drawable.debian));
break;
Expand Down

0 comments on commit a598ff3

Please sign in to comment.