// Path: wear/src/main/java/com/github/jbarr21/goproremote/ui/modes/ModeAdapter.java
// public static class ModeViewHolder extends WearableListView.ViewHolder {
//     @Bind(R.id.circle) CircledImageView circle;
//     @Bind(R.id.label) TextView label;
// 
//     public GoProMode mode;
// 
//     public ModeViewHolder(View view) {
//         super(view);
//         ButterKnife.bind(this, view);
//     }
// }
// 
// Path: common/src/main/java/com/github/jbarr21/goproremote/common/data/GoProMode.java
// public enum GoProMode {
//     VIDEO (0, R.string.video, GoProCommand.SET_VIDEO),
//     PHOTO (1, R.string.photo, GoProCommand.SET_PHOTO),
//     BURST (2, R.string.burst, GoProCommand.SET_BURST),
//     TIMELAPSE (3, R.string.timelapse, GoProCommand.SET_TIMELAPSE);
// 
//     int index;
//     int labelResId;
//     GoProCommand command;
// 
//     GoProMode(int index, @StringRes int labelResId, GoProCommand command) {
//         this.index = index;
//         this.labelResId = labelResId;
//         this.command = command;
//     }
// 
//     private int getIndex() {
//         return index;
//     }
// 
//     @StringRes
//     public int getLabelResId() {
//         return labelResId;
//     }
// 
//     public GoProCommand getCommand() {
//         return command;
//     }
// 
//     public static GoProMode from(int modeIndex) {
//         for (GoProMode mode : GoProMode.values()) {
//             if (modeIndex == mode.getIndex()) {
//                 return mode;
//             }
//         }
//         return VIDEO;
//     }
// }


import android.support.v7.widget.RecyclerView;
import android.support.wearable.view.CircledImageView;
import android.support.wearable.view.WearableListView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.jbarr21.goproremote.R;
import com.github.jbarr21.goproremote.ui.modes.ModeAdapter.ModeViewHolder;
import com.github.jbarr21.goproremote.common.data.GoProMode;
import butterknife.ButterKnife;
import butterknife.Bind;
package com.github.jbarr21.goproremote.ui.modes;




public class ModeAdapter extends RecyclerView.Adapter<ModeViewHolder> {

    private final GoProMode[] modes;

    public ModeAdapter(GoProMode[] modes) {
        this.modes = modes;
    }

    @Override
    public ModeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_mode, parent, false);
        return new ModeViewHolder(view);
    }

    @Override
    public void onBindViewHolder(ModeViewHolder holder, int position) {
        holder.mode = modes[position];
        holder.label.setText(modes[position].getLabelResId());
    }

    @Override
    public int getItemCount() {
        return modes.length;
    }

    public static class ModeViewHolder extends WearableListView.ViewHolder {
// Path: wear/src/main/java/com/github/jbarr21/goproremote/ui/modes/ModeAdapter.java
// public static class ModeViewHolder extends WearableListView.ViewHolder {
//     @Bind(R.id.circle) CircledImageView circle;
//     @Bind(R.id.label) TextView label;
// 
//     public GoProMode mode;
// 
//     public ModeViewHolder(View view) {
//         super(view);
//         ButterKnife.bind(this, view);
//     }
// }
// 
// Path: common/src/main/java/com/github/jbarr21/goproremote/common/data/GoProMode.java
// public enum GoProMode {
//     VIDEO (0, R.string.video, GoProCommand.SET_VIDEO),
//     PHOTO (1, R.string.photo, GoProCommand.SET_PHOTO),
//     BURST (2, R.string.burst, GoProCommand.SET_BURST),
//     TIMELAPSE (3, R.string.timelapse, GoProCommand.SET_TIMELAPSE);
// 
//     int index;
//     int labelResId;
//     GoProCommand command;
// 
//     GoProMode(int index, @StringRes int labelResId, GoProCommand command) {
//         this.index = index;
//         this.labelResId = labelResId;
//         this.command = command;
//     }
// 
//     private int getIndex() {
//         return index;
//     }
// 
//     @StringRes
//     public int getLabelResId() {
//         return labelResId;
//     }
// 
//     public GoProCommand getCommand() {
//         return command;
//     }
// 
//     public static GoProMode from(int modeIndex) {
//         for (GoProMode mode : GoProMode.values()) {
//             if (modeIndex == mode.getIndex()) {
//                 return mode;
//             }
//         }
//         return VIDEO;
//     }
// }


// Path: wear/src/main/java/com/github/jbarr21/goproremote/ui/modes/ModeAdapter.java
import android.support.v7.widget.RecyclerView;
import android.support.wearable.view.CircledImageView;
import android.support.wearable.view.WearableListView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.jbarr21.goproremote.R;
import com.github.jbarr21.goproremote.ui.modes.ModeAdapter.ModeViewHolder;
import com.github.jbarr21.goproremote.common.data.GoProMode;
import butterknife.ButterKnife;
import butterknife.Bind;

package com.github.jbarr21.goproremote.ui.modes;




public class ModeAdapter extends RecyclerView.Adapter<ModeViewHolder> {

    private final GoProMode[] modes;

    public ModeAdapter(GoProMode[] modes) {
        this.modes = modes;
    }

    @Override
    public ModeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_mode, parent, false);
        return new ModeViewHolder(view);
    }

    @Override
    public void onBindViewHolder(ModeViewHolder holder, int position) {
        holder.mode = modes[position];
        holder.label.setText(modes[position].getLabelResId());
    }

    @Override
    public int getItemCount() {
        return modes.length;
    }

    public static class ModeViewHolder extends WearableListView.ViewHolder {
        @Bind(R.id.circle) CircledImageView circle;