AwesomeDialog icon indicating copy to clipboard operation
AwesomeDialog copied to clipboard

Get strings from resources

Open Duna opened this issue 6 years ago • 0 comments

You have the context for all dialogs set in constructor. when set all strings set a method to give direct R.string.id to the method in order not to get the string outside the dialog and call the methods with string.

Good: setTitle setMessage

Bad: setButtonText - does take only string, but you have the context in the dialog constructor, and you get the string from there

Duna avatar Feb 05 '20 07:02 Duna