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

private access in dmx.dialog.SpotsDialog #42

Closed
Ponkabonk opened this issue Oct 3, 2018 · 4 comments
Closed

private access in dmx.dialog.SpotsDialog #42

Ponkabonk opened this issue Oct 3, 2018 · 4 comments

Comments

@Ponkabonk
Copy link

SpotsDialog dialog;
dialog = new SpotsDialog(this);

0.7 works great. I tried upgrading to 1.1 and keep getting a "private" access error. Can you provide a Java example?
error

@dybarsky
Copy link
Owner

dybarsky commented Oct 4, 2018

The usage is described in readme.

val dialog: AlertDialog = SpotsDialog.Builder()
    .Builder()
    .setContext(context)
    .setTheme(R.style.Cusom)
    .build()
    .apply {
        show()
    }

@dybarsky dybarsky closed this as completed Oct 4, 2018
@Ponkabonk
Copy link
Author

Ponkabonk commented Oct 4, 2018 via email

@dybarsky
Copy link
Owner

dybarsky commented Oct 4, 2018

"Not working" doesn't really make sense. Is it crashing? Is it showing? Compile error?
This works to me

AlertDialog dialog = new SpotsDialog.Builder()
                .setContext(this)
                .setMessage("tes")
                .setCancelable(false)
                .build();

        dialog.show();

@Ponkabonk
Copy link
Author

Ponkabonk commented Oct 4, 2018 via email

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

2 participants