mplekunov / CalculatorApp

GNU General Public License v3.0
1 stars 0 forks source link

Upd: dynamic spannable in both advanced and default modes #30

Closed mplekunov closed 2 years ago

mplekunov commented 2 years ago

Editing Mode requires attaching clickableSpan to input... Before, due to some complications I had to reinitialize spannable on each new token... This takes time... Now, the full "re-initialization" happens only in 2 cases:

  1. User presses Change Layout button
  2. Answer contains negative, so, due to how negatives works in my algo, when user press equal button I initialize 2 tokens instead of one

In all other times I initialize spannable dynamically... So when I press button, let's say number 1, this button transforms to spannable and it's getting added to the "whole" spannable input