Project: titanium
Issue TIMOB-18609: Android: The number of log messages from closing a window increases every time a window is closed
h5.Description When building an application to device and then opening and closing a window the message 'Window: Window is closed normally'. If the window is opened and closed multiple times then the messaged is printed out equal to the number of times it has been opened and closed. This is *not a regression* as it occurs in 3.5.0.GA SDK The logging appears to be coming from line 72 in *android/modules/ui/src/js/window.js* If the app is packaged and installed onto device then the code at that line is not executed as the if statement does not trigger For example, see the below log output where I have opened and closed the window 3 times {code} [DEBUG] : Window: Checkpoint: postWindowCreated() [DEBUG] : Window: Window is closed normally. [DEBUG] : Window: Checkpoint: postWindowCreated() [DEBUG] : Window: Window is closed normally. [DEBUG] : Window: Window is closed normally. [DEBUG] : Window: Checkpoint: postWindowCreated() [DEBUG] : Window: Window is closed normally. [DEBUG] : Window: Window is closed normally. [DEBUG] : Window: Window is closed normally. {code} h5.Steps To Reproduce 1. Add the attached app.js to an existing project 2. Build the app to an Android device 3. Tap the button to open a window 4. Use the Android back button or the 'Close window button' on screen 5. Repeat steps 3 and 4 h5.Actual Result 4. The window will close '\[DEBUG] : Window: Window is closed normally.' will be printed in the console. As expected 5. For each time you repeat the above steps the number of log message will increase h5.Expected Result 5. There should only be one of the above log messages shown when a window is closed
Story points: 8