app/src/main/java/egolabsapps/basicodemine/pokemonmaster/UI/Activities/PokemonDetailActivity.java
void pushNewAbilityDetailsDialog(String abilityId, PokemonDetails pokemonDetails, String pokeId) {
        Call<AbilityPerfectDetail> perfectDetailCall = pokemonApi.getPokemonAttackDetails(abilityId);
        perfectDetailCall.enqueue(new Callback<AbilityPerfectDetail>() {
            @Override
            public void onResponse(@NonNull Call<AbilityPerfectDetail> call, @NonNull Response<AbilityPerfectDetail> response) {
                if (response.body() != null) {
                    abilityViewDialog = new PokemonAbilityViewDialog(activity, pokemonDetails, response.body(), pokeId, PokemonDetailActivity.this);
                    if (isDialogAllowed)
                        abilityViewDialog.showIfAllowed();
                }
            }

            @Override
            public void onFailure(@NonNull Call<AbilityPerfectDetail> call, @NonNull Throwable t) {

            }
        });
    }
/**
     * I should disabled button when press it for dialog
     */
I should disabled button when press it for dialog
I should disabled button when press it for dialog
void pushNewAbilityDetailsDialog(String abilityId, PokemonDetails pokemonDetails, String pokeId) {
        Call<AbilityPerfectDetail> perfectDetailCall = pokemonApi.getPokemonAttackDetails(abilityId);
        perfectDetailCall.enqueue(new Callback<AbilityPerfectDetail>() {
            @Override
            public void onResponse(@NonNull Call<AbilityPerfectDetail> call, @NonNull Response<AbilityPerfectDetail> response) {
                if (response.body() != null) {
                    abilityViewDialog = new PokemonAbilityViewDialog(activity, pokemonDetails, response.body(), pokeId, PokemonDetailActivity.this);
                    if (isDialogAllowed)
                        abilityViewDialog.showIfAllowed();
                }
            }
            @Override
            public void onFailure(@NonNull Call<AbilityPerfectDetail> call, @NonNull Throwable t) {
            }
        });
    }
void pushNewAbilityDetailsDialog ( String abilityId , PokemonDetails pokemonDetails , String pokeId ) { Call < AbilityPerfectDetail > perfectDetailCall = pokemonApi . getPokemonAttackDetails ( abilityId ) ; perfectDetailCall . enqueue ( new Callback < AbilityPerfectDetail > ( ) { @ Override public void onResponse ( @ NonNull Call < AbilityPerfectDetail > call , @ NonNull Response < AbilityPerfectDetail > response ) { if ( response . body ( ) != null ) { abilityViewDialog = new PokemonAbilityViewDialog ( activity , pokemonDetails , response . body ( ) , pokeId , PokemonDetailActivity . this ) ; if ( isDialogAllowed ) abilityViewDialog . showIfAllowed ( ) ; } } @ Override public void onFailure ( @ NonNull Call < AbilityPerfectDetail > call , @ NonNull Throwable t ) { } } ) ; }
I should disabled button when press it for dialog
I should disabled button when press it for dialog