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

Android: "ti.map" module logs theme errors

    Details

    • Story Points:
      3

      Description

      Summary:
      Show the "ti.map" module's map view causes theme errors to be logged.

      Steps to reproduce:

      1. Set up a Titanium project to use the newest "ti.map" module.
      2. Build and run the below code on Android.
      3. In the log, notice the following error will be logged on app startup.

      [ERROR] ThemeUtils: View class com.google.maps.android.ui.SquareTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
      

      app.js

      const map = require("ti.map");
      const window = Ti.UI.createWindow();
      window.add(map.createView({
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      }));
      window.open();
      

      Cause:
      It's caused by our marker clustering feature. We're supposed to pass an Activity to the Java ClusterManager constructor, but we're passing it an Application instance instead.
      TiUIMapView.java

      Note:
      This error appears to be harmless. The map view and its markers still function correctly.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • 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 Integration