Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application name not displayed correctly #5

Open
tiaggofg opened this issue Nov 24, 2024 · 0 comments
Open

Application name not displayed correctly #5

tiaggofg opened this issue Nov 24, 2024 · 0 comments

Comments

@tiaggofg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant