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

Android: Add ability to hide/show back button on Window

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.0
    • Fix Version/s: Release 8.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      iOS & TiSDK 7.1.0.GA

      Description

      We implemented the ability to hide the back-button on iOS (enabled by default) via TIMOB-25871. For Android, the back-button (home indicator) is not shown, but for parity sake, we should make this toggleable (on creation only).

      Right now, the following needs to done for every sub-window:

      function onOpen() {
      	const actionBar = $.window.getActivity().getActionBar();
       
      	if (actionBar !== null) {
      		actionBar.displayHomeAsUp = true;
      		actionBar.onHomeIconItemSelected = close;
      	}
      }
      

      Having a property and doing this internally would be a huge cross-platform shared parity-code improvement, especially for larger scaled apps. On long-term, this should part of the Ti.UI.NavigationWindow effort, but I think this did not gain much love so far.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                hknoechel Hans Knöchel
              • Watchers:
                3 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