Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15024] Android 4.3 - Orientation change event (Ti.Gesture) fires multiple times when changing the orientation of the phone

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-09-03T18:27:21.000+0000
Affected Version/sRelease 3.1.2
Fix Version/sn/a
ComponentsAndroid
LabelsAndroid, triage
ReporterBert Grantges
AssigneePing Wang
Created2013-09-01T13:21:32.000+0000
Updated2017-03-24T17:47:41.000+0000

Description

To duplicate create a simple app with a window - make the window heavyweight (fullscreen=true) Add the below code: Ti.Gesture.addEventListener('orientationchange', function(e){ Ti.API.info('orientationchange'); }); run the application on android (my test was version 4.3) notice that the event fires multiple times when changing the orientation.

Comments

  1. Ping Wang 2013-09-03

    [~bgrantges], I can not reproduce the issue. Ran the test case below on Nexus 4 (4.3) with 3.1.2.GA. The "orientationchange" event only fired once when changing the orientation. Can you specify which device you used and also paste your test case?
       var win = Ti.UI.createWindow({
       	backgroundColor : 'yellow',
       	fullscreen: true
       });
       
       Ti.Gesture.addEventListener('orientationchange', function(e){ 
       	Ti.API.info('********************** orientationchange'); 
       });
       
       win.open(); 
       
  2. Lee Morris 2017-03-24

    Closing ticket as cannot reproduce with reference to Ingo's comment above.

JSON Source