Closed liaohuqiu closed 9 years ago
Hi, we don't want to support setting dialog listeners in builders since it's a very error-prone feature breaking correct handling of device rotation and causing memory leaks. There are currently no plans to add such feature in future releases. The only safe approaches for handling dialog listeners are via target fragment and activity listeners.
In some situation, we will define a
Listener
neither in aActivity
or in aFragment
.For more convenient usage, we should allow set the
Listener
while build the dialog. For example: