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

Android: App crashes when properties of the actionBar are changed while the current window/tabGroup has navBarHidden set to true

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: Release 3.1.0, Release 3.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 3.1.0.GA
      Android 4.1.2

    • Story Points:
      0
    • Sprint:
      2018 Sprint 25

      Description

      Problem
      The app crashes with "Unfortunately, app has stopped." if actionBar properties are changed at runtime while the current window/tabGroup has navBarHidden set to true.

      Test case

      var win = Ti.UI.createTabGroup({
      	navBarHidden : true
      });
      tab1 = Ti.UI.createTab({
      	title : "title1"
      });
      win1 = Ti.UI.createWindow();
      tab1.window = win1;
      tab2 = Ti.UI.createTab({
      	title : "title2"
      });
      win2 = Ti.UI.createWindow();
      tab2.window = win2;
      win.addTab(tab1);
      win.addTab(tab2);
      win.addEventListener("open", function() {
      	actionBar = win.getActivity().actionBar;
      	if (actionBar) {
      		actionBar.setTitle("Test");
      	}
      });
      win.open();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                olmokramer Olmo Kramer
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16627
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code