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

SpotsDialog(....) has private access in 'dmax.dialog.SpotsDialog' #39

Closed
d3smondwong opened this issue Jun 13, 2018 · 2 comments
Closed

Comments

@d3smondwong
Copy link

Hi,

tried the following

AlertDialog waitingDialog = new SpotsDialog(LogIn.this);

but SpotsDialog can't be read. Any idea what am i missing?

The android prompt put this as the error SpotsDialog(....) has private access in 'dmax.dialog.SpotsDialog'

@dybarsky
Copy link
Owner

Hi,
please, use builder:

val dialog: AlertDialog = SpotsDialog.Builder().setContext(context).build()
...
dialog.show()
...
dialog.dismiss()

@amansrii8
Copy link

amansrii8 commented Aug 6, 2018

SpotsDialog.Builder().setContext(context).build() says method call required in java

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

3 participants