-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Android: fix Ti.UI.overrideUserInterfaceStyle #13267
Android: fix Ti.UI.overrideUserInterfaceStyle #13267
Conversation
We need to use I changed behaviour for some basic cases as a PoC. |
|
Apparently, failed tests are not related to changes in this PR. |
Thats pretty cool, thank you @drauggres! I did not expect to see any progress regarding this, wow! Will try to test in over the next weeks! |
728e3a0
to
315d018
Compare
@drauggres Can you please pull from master again? The build will then succeed :) |
There is one new merge conflict because of the recent separator-color changes. |
fix Ti.UI.overrideUserInterfaceStyle fix TIMOB-28563
56e5057
to
8608c6a
Compare
rebased and fixed |
Thank you! But the PR looks much larger now. And kind of mixed with #13273, is that possible? Due to the force-push, this is not clearly visible anymore. |
In this PR I had to update every single line where color is assigned and add an |
Understood, thank you. Didn't mean to be rude here 🧐. |
What? When? You wasn't rude. Was I? |
Looks fine from my end. @m1ga ? |
It adds another function to the helper so I will checkout the PR later today and give it a test run |
Using the test app from the ticket I've tested:
Tested my existing app ✔️ :
Side note: |
JIRA: https://jira.appcelerator.org/browse/TIMOB-28563
fix #13266
Known issues:
TiGradientDrawable
: doesn't have aproxy
referenceTiAnimationBuilder
:proxy
is assinged instart()
methond, i.e. after parameters calculation.In both cases classes could be refactored, but I'm not going to do it now.
As simple workaround it is possible to use
tiApp.getRootOrCurrentActivity()
instead ofTiApplication.getInstance()
. In most cases this will give the desired result, but is not really correct, since it's possible that aproxy
will have differentActivity
from current.If someone will be thinking about merging this, please consider refactoring classes mentioned above or at least creating issues, so this don't get lost.