[TIMOB-10125] Android: Window properties:Background image is not setting up after height/width toggling.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-24T20:07:13.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 2.1.3, Release 3.0.0, Sprint 2012-19 Core, 2012 Sprint 19 |
Components | Android |
Labels | core, layout, qe-and070112, qe-review, qe-testadded, regression |
Reporter | Shyam Bhadauria |
Assignee | Allen Yeung |
Created | 2012-07-25T01:27:06.000+0000 |
Updated | 2012-09-24T20:07:13.000+0000 |
Description
This is a regression. It is working fine in 2.1.0.
Steps to reproduce:
1) Install the refactored kitchen sink on android device and run it.
2) Go to Base UI -> Window Properties
3) Press button 'Toggle Height/Width' twice.
4) Now press 'Change BG Image'.
5) Again press 'Toggle Height/Width'.
6) Press 'Change BG Image'.
Expected result:
1) The app should run successfully over device.
2) It should display 5 buttons to perform window actions.
3) It should resize the window to a smaller size (300*300) and then again to full screen size with a black background.
4) It should change the background image of the window.
5) It will resize the window to a smaller size (300*300) and should change background to black.
6) It should change the background image of the window.
Actual result:
1) The app should run successfully over device.
2) It displays 5 buttons to perform window actions.
3) It resizes the window to a smaller size (300*300) and then again to full screen size with a black background.
4) It changes the background image of the window.
5) It resizes the window to a smaller size (300*300) and changes background to black.
6) It DO NOT changes the background image of the window.
The background image should change after window resizing.
This doesnot seem like a KitchenSink issue and rather an android bug. It seems like once you set a window background and then change the height and width of the window, the BGimage is ignored after the resize. This doesnot occure in MobileWeb or iOS. Smaller Test case can found [here](http://db.tt/OtEKCec0) Changing ticket to Android layout bug.
This was introduced by https://github.com/appcelerator/titanium_mobile/pull/2553, will revert the fix since it wasn't necessary.
PR ready: https://github.com/appcelerator/titanium_mobile/pull/2935
Backport PR: https://github.com/appcelerator/titanium_mobile/pull/2957
Verified on: Titanium Studio: 2.1.2.201208301612 Titanium SDK: 2.1.3.v20120915120319 Android Device: LGP970 (v2.2), Samsung Galaxy Nexus (v4.0.2)