[TIMOB-2579] Window does not reopen properly, different background color and will not close
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M04 |
Components | Android |
Labels | android, defect, release-1.6.0 |
Reporter | pete |
Assignee | Don Thorp |
Created | 2011-04-15T03:23:18.000+0000 |
Updated | 2011-04-17T01:59:30.000+0000 |
Description
My app is a type of calculator. Once the user clicks the button
Calculate, a new window is opened that shows the results. On this
output window I have added a back button which closes the current
window. This all works fine unless upon clicking back you once
again click calculate. This time, the window opens but the
background is black and none of the buttons work, even hitting the
Android back key.
What is happening? Was the output window never fully closed?
I've run into this same problem. It happening to me in Android 1.5.1+. Probably in 1.5.0 as well, but I haven't tested it. It appears to me like the background is simply not there when reopening windows. I've asked this in QA here for more details:
http://developer.appcelerator.com/question/93591/background-disappears-after-re-opening-window"> http://developer.appcelerator.com/question/93591/background-disappe...
Here is some simplified code that reproduces the issue. This is the entire app.js. Run this with 1.4.3 and the background will return to white after each cycle. Run with 1.5.2, and the screen goes to black after the first click.
(from [a1a9c2af2ac88a98c13baee4e64ef6e91891e4b7]) [#2579 state:fixed-in-qa] processProperties expects a clone of the properties to be passed. Values are removed by some specialized classes before sending the properties to their parent's processProperties. Note: This example works with open and close in the same click handler because it's a lightweight window. Trying it with an Activity/heavyweight window has unpredictable side-effect due to having to create the new Activity. https://github.com/appcelerator/titanium_mobile/commit/a1a9c2af2ac88a98c13baee4e64ef6e91891e4b7"> https://github.com/appcelerator/titanium_mobile/commit/a1a9c2af2ac8...
closed against Titanium SDK version: 1.6.0 (01/06/11 08:47 8b2fd0e) G1 (1.6) droid 1 (2.2.1) emulator 2.1. checked ipod touch 4gt 4.2.1
If I understood correctly the fix is included in the build located
here:http://builds.appcelerator.com.s3.amazonaws.com/index.html">http://builds.appcelerator.com.s3.amazonaws.com/index.html
under: Jan 6 2011 02:15 r8b2fd0e4
If so then the issue is still not resolved for me. The background is no longer black and is now correct however when I scroll up I can see the previous window behind the first.
There is no scroll region in that test. How are you "scrolling up"
I created the ticket someone else posted an example. Apparently the example had a different issue than mine. Example code is below:
app.js
win3.js
I apologize for the terrible formatting. I did preview my post but was distracted by a work emergency before I could fix it. I was hoping to be able to edit it after the fact...
Also, I will try putting my code into a single page and see if that solves my problem.
I did create this issue but it seems there were multiple issues I was running into, should I create a new issue? (perhaps someone else should who could define it more clearly...)
New ticket created here: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2838-reopening-a-window-opens-it-twice"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...