Skip to content

Application name not displayed correctly #5

@tiaggofg

Description

@tiaggofg

Hi there!

I have a wrapper class where the Toast#builder is invoked. In this class, I also configure the application name. But in Windows, is displayed Open JDK Platform binary in the application name, as you see below

image

Below is the wrapper class where the app name is defined as PrintRouter

public class ToastNotification implements IToast {

    public ToastNotification() {
        var settings = new ToasterSettings().setAppName("PrintRouter");
        ToasterFactory.setSettings(settings);
    }

    @Override
    public void showErrorMessage(String message) {
        Toast.builder()
                .type(ToastType.ERROR)
                .title("PrintRouter Erro")
                .content(message)
                .icon(getIconURL())
                .timeout(PrintRouterConstants.TOAST_TIMEOUT)
                .toast();
    }

    @Override
    public void showSuccessMessage(String message) {
        Toast.builder()
                .type(ToastType.INFO)
                .title("PrintRouter Info")
                .content(message)
                .icon(getIconURL())
                .timeout(PrintRouterConstants.TOAST_TIMEOUT)
                .toast();
    }

    private String getIconURL() {
        return new File(PrintRouterConstants.iconPath()).toString();
    }
}

In Linux, it works fine

image

Regards,
Tiago Godoy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions