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

Android: Ti.UI.ShortcutItem has lot of issues

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: Release 9.1.0
    • Component/s: Android
    • Labels:
    • Environment:

      SDK: 9.0.3.GA
      CLI: 8.0.0

    • Sprint:
      2020 Sprint 13, 2020 Sprint 14

      Description

      Ti.UI.ShortcutItem class needs lot of refactoring and improvements as listed below:

      Issues:

      1. icon property does not accept Ti.File.nativePath string to create downloaded remote icons, it supports only the bundled icons as of now in the form of drawable which limits its usage.
      2. While adding two shortcut items with same icon, one of the item does not shown icon (shown in attached screenshot)
      3. Adding multiple shortcuts (out of maximum allowed) throw error. It should check and provide a support for knowing maximum shortcuts allowed as described HERE (shown in attached screenshot)
      4. Before creating icon in proxy-class, it should be checked for their maximum dimension allowed as per getIconMaxWidth() and getIconMaxHeight().

      Feature Request:

      1. Add feature to remove shortcut by just passing the ID since the current way to remove shortcut is to first create it & then calling its hide() method which seems odd.
      2. Add feature to remove all shortcuts with a single call using removeAllDynamicShortcuts() method from native side. A common method for Titanium can be used for this point and the one above.
      3. Return a list of all shortcuts added so we don't need to keep a track in app. Refer getShortcuts() or the getDynamicShortcuts() method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                prashant_saini Prashant Saini
                Reviewer:
                Joshua Quick
              • Watchers:
                4 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 Integration