package org.mian.gitnex.actions; import android.content.Context; import android.view.View; import android.widget.ProgressBar; import androidx.annotation.NonNull; import com.google.android.material.dialog.MaterialAlertDialogBuilder; import java.util.List; import org.gitnex.tea4j.v2.models.Label; import org.mian.gitnex.R; import org.mian.gitnex.adapters.LabelsListAdapter; import org.mian.gitnex.clients.RetrofitClient; import org.mian.gitnex.databinding.CustomLabelsSelectionDialogBinding; import org.mian.gitnex.helpers.Toasty; import retrofit2.Call; import retrofit2.Callback; /** * @author M M Arif */ public class LabelsActions { public static void getCurrentIssueLabels( Context ctx, String repoOwner, String repoName, int issueIndex, List currentLabelsIds) { Call> callSingleIssueLabels = RetrofitClient.getApiInterface(ctx) .issueGetLabels(repoOwner, repoName, (long) issueIndex); callSingleIssueLabels.enqueue( new Callback<>() { @Override public void onResponse( @NonNull Call> call, @NonNull retrofit2.Response> response) { if (response.isSuccessful()) { List