New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-11269] Kitchen sink:Base UI:Window Properties->Toggling height/wi... #3582
Conversation
…/width changing opacity of window
{ | ||
// | ||
// Special case where where the windowProxy arg here does not match our underlying proxy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo "where where"
…/width changing opacity of window -- fix typo in comment
…/width changing opacity of window -- Implement a cleaner solution as suggested by Ping
…/width changing opacity of window -- remove unneeded changes
…/width changing opacity of window -- remove unneeded changes
…/width changing opacity of window -- another attempt to get this right
String propertyName = name; | ||
Object newValue = value; | ||
|
||
if (isLocaleProperty(name)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not put the code in the if block to a separate method in KrollProxy.java so we don't need to copy it over here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should call mViewProxy.isLocaleProperty() and mViewProxy.updateLocaleProperty().
…/width changing opacity of window -- More changes in response to comments in the pull request
String propertyName = name; | ||
Object newValue = value; | ||
|
||
updateLocalePropertyNameAndValue(propertyName, newValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we try to update the property of mViewProxy, so we should use mViewProxy.updateLocalePropertyNameAndValue().
…g height/width changing opacity of window -- More changes in response to comments in the pull request" This reverts commit 9298b3c.
…/width changing opacity of window -- more changes in response to comments in pull request
|
||
if (mViewProxy.isLocaleProperty(name)) { | ||
Log.i(TAG, "Updating locale: " + name, Log.DEBUG_MODE); | ||
Pair<String, String> update = mViewProxy.updateLocaleProperty(name, value.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use TiConvert.toString(value) here and also in KrollProxy.java
…/width changing opacity of window -- more changes in response to pull request comments
Code reviewed and functionally tested. Ran the test case on rhino and v8 and also ran KS and Anvil for a sanity check. All passed. Accepted |
[TIMOB-11269] Kitchen sink:Base UI:Window Properties->Toggling height/wi...
...dth changing opacity of window