// Path: app/src/main/java/com/antest1/kcanotify/KcaFleetViewService.java
// public static final String[] fleetview_menu_keys = {"quest", "excheck", "develop", "construction", "docking", "maphp", "fchk", "labinfo", "akashi"};


import androidx.core.util.LogWriter;
import androidx.core.util.Pair;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.gson.JsonObject;
import com.woxthebox.draglistview.DragItemAdapter;
import java.util.ArrayList;
import static com.antest1.kcanotify.KcaFleetViewService.fleetview_menu_keys;
package com.antest1.kcanotify;






public class KcaFleetViewMenuOrderAdpater extends DragItemAdapter<JsonObject, KcaFleetViewMenuOrderAdpater.ViewHolder> {
    private int mLayoutId, mGrabHandleId;
    private boolean mDragOnLongPress;

    KcaFleetViewMenuOrderAdpater(ArrayList<JsonObject> list, int layoutId, int grabHandleId, boolean dragOnLongPress) {
        mLayoutId = layoutId;
        mGrabHandleId = grabHandleId;
        mDragOnLongPress = dragOnLongPress;
        setItemList(list);
    }

    @Override
    public long getUniqueItemId(int position) {
        return mItemList.get(position).get("key").getAsLong();
    }

    public String getUniqueItemValue(int position) {
        return mItemList.get(position).get("value").getAsString();
    }

    public int getUniqueItemOrder(int position) {
        String value = mItemList.get(position).get("value").getAsString();
// Path: app/src/main/java/com/antest1/kcanotify/KcaFleetViewService.java
// public static final String[] fleetview_menu_keys = {"quest", "excheck", "develop", "construction", "docking", "maphp", "fchk", "labinfo", "akashi"};


// Path: app/src/main/java/com/antest1/kcanotify/KcaFleetViewMenuOrderAdpater.java
import androidx.core.util.LogWriter;
import androidx.core.util.Pair;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.gson.JsonObject;
import com.woxthebox.draglistview.DragItemAdapter;
import java.util.ArrayList;
import static com.antest1.kcanotify.KcaFleetViewService.fleetview_menu_keys;

package com.antest1.kcanotify;






public class KcaFleetViewMenuOrderAdpater extends DragItemAdapter<JsonObject, KcaFleetViewMenuOrderAdpater.ViewHolder> {
    private int mLayoutId, mGrabHandleId;
    private boolean mDragOnLongPress;

    KcaFleetViewMenuOrderAdpater(ArrayList<JsonObject> list, int layoutId, int grabHandleId, boolean dragOnLongPress) {
        mLayoutId = layoutId;
        mGrabHandleId = grabHandleId;
        mDragOnLongPress = dragOnLongPress;
        setItemList(list);
    }

    @Override
    public long getUniqueItemId(int position) {
        return mItemList.get(position).get("key").getAsLong();
    }

    public String getUniqueItemValue(int position) {
        return mItemList.get(position).get("value").getAsString();
    }

    public int getUniqueItemOrder(int position) {
        String value = mItemList.get(position).get("value").getAsString();
        for (int i = 0; i < fleetview_menu_keys.length; i++) {