Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16900

Android: Add selected/unselected Tab events for parity with iOS Focus and Blur events

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: Release 3.2.2
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      3.3.0 Android

    • Story Points:
      1
    • Sprint:
      2019 Sprint 1

      Description

      On iOS, the Tab focus and blur events fire for the relevant tabs when a tab is selected. On Android, these events also fire when the window gains or loses focus, such as when the Home button is clicked or when the screen is unlocked. The iOS behavior is the correct one, and should be matched. This is important, since we need a reliable indicator for when a tab is selected and unselected. We currently have no such indicator in Android, thus this is critical.

      UPDATE: see PR in comment below. The PR added the selected and unselected tab events for Android, while not modifying focus and blur behavior to maintain app compatibility. In iOS, tab focus and blur were simply renamed to selected and unselected. These events function as expected, and have the benefit of being more appropriately named.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                mokesmokes Mark Mokryn
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code