Closed dieechtenilente closed 7 years ago
How exactly would enums improve your code? Does your current solution not work reliably? Your code looks fine, so using an enum would not improve readability either.
@okitec It works, but now I have to add all my hand
You have to type it out once anyway. Consider generating Java code automagically by using Awk (heh) and shell scripting. Code generation is fun.
I thought about something like that. I only have to figure out a smooth and nice way to add buttons programmatically and not creating a new one for each quote :)
~Put all quotes in enum~ or add them programmatically from /res/raw/* and sort them
Current code: