dybarsky / spots-dialog

Android AlertDialog with moving dots progress indicator
MIT License
1.08k stars 242 forks source link

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

Closed d3smondwong closed 6 years ago

d3smondwong commented 6 years ago

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 commented 6 years ago

Hi, please, use builder:

val dialog: AlertDialog = SpotsDialog.Builder().setContext(context).build()
...
dialog.show()
...
dialog.dismiss()
amansrii8 commented 6 years ago

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