@NonNull
    private AlertDialog buildRetryAlert(
            @StringRes int messageTextId,
            @StringRes int positiveButtonTextId,
            @StringRes int negativeButtonTextId,
            final Intent intent) {
    """
	Builds an {@link AlertDialog} to the user to indicate a {@link RideRequestViewError#CONNECTIVITY_ISSUE}
	and allow the retry of the button.
	
	@param messageTextId the message content {@link StringRes} text ID
	@param positiveButtonTextId the positive button {@link StringRes} text ID
	@param negativeButtonTextId the negative button {@link StringRes} text ID
	@param intent the {@link Intent} to pass in the result
	@return an {@link AlertDialog} to show
    """
        return new AlertDialog.Builder(this)
                .setMessage(messageTextId)
                .setPositiveButton(positiveButtonTextId, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        load();
                    }
                })
                .setNegativeButton(negativeButtonTextId, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        setResult(RESULT_CANCELED, intent);
                        finish();
                    }
                })
                .setOnCancelListener(new DialogInterface.OnCancelListener() {
                    @Override
                    public void onCancel(DialogInterface dialog) {
                        setResult(RESULT_CANCELED, intent);
                        finish();
                    }
                })
                .create();
    }
@NonNull
    private AlertDialog buildRetryAlert(
            @StringRes int messageTextId,
            @StringRes int positiveButtonTextId,
            @StringRes int negativeButtonTextId,
            final Intent intent) {
        return new AlertDialog.Builder(this)
                .setMessage(messageTextId)
                .setPositiveButton(positiveButtonTextId, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        load();
                    }
                })
                .setNegativeButton(negativeButtonTextId, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        setResult(RESULT_CANCELED, intent);
                        finish();
                    }
                })
                .setOnCancelListener(new DialogInterface.OnCancelListener() {
                    @Override
                    public void onCancel(DialogInterface dialog) {
                        setResult(RESULT_CANCELED, intent);
                        finish();
                    }
                })
                .create();
    }
@ NonNull private AlertDialog buildRetryAlert ( @ StringRes int messageTextId , @ StringRes int positiveButtonTextId , @ StringRes int negativeButtonTextId , final Intent intent ) { return new AlertDialog . Builder ( this ) . setMessage ( messageTextId ) . setPositiveButton ( positiveButtonTextId , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { load ( ) ; } } ) . setNegativeButton ( negativeButtonTextId , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialogInterface , int i ) { setResult ( RESULT_CANCELED , intent ) ; finish ( ) ; } } ) . setOnCancelListener ( new DialogInterface . OnCancelListener ( ) { @ Override public void onCancel ( DialogInterface dialog ) { setResult ( RESULT_CANCELED , intent ) ; finish ( ) ; } } ) . create ( ) ; }
Builds an {@link AlertDialog} to the user to indicate a {@link RideRequestViewError#CONNECTIVITY_ISSUE}
and allow the retry of the button.

@param messageTextId the message content {@link StringRes} text ID
@param positiveButtonTextId the positive button {@link StringRes} text ID
@param negativeButtonTextId the negative button {@link StringRes} text ID
@param intent the {@link Intent} to pass in the result
@return an {@link AlertDialog} to show
Builds an { @link AlertDialog } to the user to indicate a { @link RideRequestViewError#CONNECTIVITY_ISSUE } and allow the retry of the button .