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

Actionbar 'icon' property is broken with latest 4.0.0 SDK

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Android
    • Environment:

      Environment:
      Appc Studio : 4.0.0.201505060941
      Ti SDK : 4.0.0.v20150430090209
      CLI : 4.0.0-beta8
      Alloy : 1.6.0-beta4
      MAC Yosemite : 10.10.3
      Appc npm : 0.3.55
      Appc CLI : 0.2.280
      Node: v0.10.37

      Description

      This is a regression. Works fine with 3.5.1.GA SDK.
      Steps to Reproduce:

      1. Create an app for android for actionbar.

      var win = Ti.UI.createWindow({
          navBarHidden: false
      });
      var actionBar;
       
      win.addEventListener("open", function() {
          if (Ti.Platform.osname === "android") {
              if (! win.activity) {
                  Ti.API.error("Can't access action bar on a lightweight window.");
              } else {
                  actionBar = win.activity.actionBar;
                  if (actionBar) {
                      actionBar.icon = "/icon.png"; 
                      actionBar.title = "New Title";
                      actionBar.onHomeIconItemSelected = function() {
                          Ti.API.info("Home icon clicked!");
                      };
                  }
              }
          }
      });
       
      win.open();
      

      2. Build for android device/emulator with latest 4.0.0 SDK.

      Actual Result:

      1. The actionbar icon is not shown.
      2. When built with SDK 3.5.1.GA the actionbar icon is shown as expected.

      Expected Result:

      1. The actionbar icon should be seen with latest 4.0.0 SDK.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                lchoudhary Lokesh Choudhary
                Reviewer:
                Gary Mathews
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code