I have a Activity
that shows a custom AlertDialog
, as the class of Activity
was kind of big I put the call of this Alert in another class in a static method. When I clicked on a certain Alert button (or when I closed it) I wanted a method of the Activity class to be executed (which is in charge of updating a ListView), but to change the ListView it would need to be called in the instance where Activity is running. Can I use this method with the context
of the Activity or some other medium? I thought about making this class of AlertDialog as a partial class
of Activity, but from what I saw this is not possible in Kotlin.