Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5038] Android: API Parity: clickEvent are not handled in map annotations

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-19T17:59:02.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsannotation, api, clickEvent, map, parity
ReporterNatalie Huynh
AssigneeIngo Muschenetz
Created2011-08-17T14:45:39.000+0000
Updated2017-07-19T17:59:02.000+0000

Description

Steps to Reproduce: 1. Run the attached application 2. Click on Open Test 3. Click on the right titanium image in the annotation Actual Result: Nothing happens Expected Result: To display a different annotation

Attachments

FileDateSize
MapAnnotations.zip2011-09-01T16:15:19.000+00002354555

Comments

  1. Marshall Culpepper 2011-09-01

    We need to update with more details: when does the click event of an annotation actually occur, during the pin click, during the popup click, or both? Also a boiled down JS example would be helpful
  2. Natalie Huynh 2011-09-01

    Trimmed test down to easily track the problem
  3. Natalie Huynh 2011-09-01

    Android: Clicking on the pin displays and hides the map annotation. Click event is not taking the click on the right view item in map annotation. iOS: Clicking on the pin displays the map annotation, click elsewhere to hide Click on the right view, map annotion changes, pin changes Pin does not take click events when map annotation is up
  4. Arthur Evans 2012-02-09

    I did some testing on this sample against current master. Looking at the logging, the click event IS being generated. However, there are a couple of issues: - On Android, the event is generated with clicksource = 'rightPane', not 'rightButton', so that branch is never executed. - If I change the logic to use (clicksource == 'rightButton' || clicksource == 'rightPane'), I can see the branch get executed, but the changes to the annotation never show up. Perhaps this is related to TIMOB-2236?
  5. Arthur Evans 2012-02-09

    By further paring down the test case in this report, I came up with a crash, reported as TIMOB-7610. This crash would explain why the annotation is not getting updated, except that we're not seeing the crash. Question: could the platform be catching this NPE because it's occurring inside the click event handler? That could explain the observed behavior.
  6. Lee Morris 2017-07-19

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source