Fixed
Status Update
Comments
pa...@google.com <pa...@google.com> #3
Found on master. But likely affects 4.0 branch too. Unless it's a simple fix, I wouldn't risk to cherry-pick.
so...@google.com <so...@google.com>
xo...@google.com <xo...@google.com> #4
The fix is relatively simple - ag/10142127 (submitted yesterday). On the other hand, this misbehaviour has been there forever (I think). Thoughts about 4.0-worthiness?
pa...@google.com <pa...@google.com> #5
I would say, if no one reported this so far, I would keep it on master only.
Description
- On a simple project, run the Project Structure Dialog, select "Variables", "add new Variable"
- Type "a b c" (see screenshot). Notice that "Apply" at the bottom is disabled.
- With the mouse, press a few times outside the typing area (for example in the area where the "values" are inputed)
- Fix "a b c" to just "a" and add a value to it (eg: 1)
- Press "Apply", check build.gradle
Result:
ext {
abc = ''
abc = ''
abc = ''
abc = ''
a = 1
}
Note: It seems that when the Text Input loses focus (or tries to lose it), it commit whatever it is current on the Text Input to the model, with some kind of filtering ("a b c" -> "abc")