Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[android] Make BubbleLayout public - #8356

Merged
zugaldia merged 1 commit into
release-ios-v3.5.0-android-v5.0.0from
az-instantiatable
Mar 11, 2017
Merged

zugaldia merged 1 commit into
release-ios-v3.5.0-android-v5.0.0from
az-instantiatable

Conversation

@zugaldia

Copy link
Copy Markdown
Member

Lint is complaining about the visibility of BubbleLayout:

:MapboxGLAndroidSDKTestApp:compileReleaseSources
/bitrise/src/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BubbleLayout.java:38: Error: This class should be public (com.mapbox.mapboxsdk.annotations.BubbleLayout) [Instantiatable]
  public BubbleLayout(Context context, AttributeSet attrs, int defStyleAttr) {
         ~~~~~~~~~~~~

   Explanation for issues of type "Instantiatable":
   Activities, services, broadcast receivers etc. registered in the manifest
   file (or for custom views, in a layout file) must be "instantiatable" by
   the system, which means that the class must be public, it must have an
   empty public constructor, and if it's an inner class, it must be a static
   inner class.

1 errors, 0 warnings

Instead of adding a custom lint disable 'Instantiatable' rule, let's simply make the class public as suggested.

@Guardiola31337 Guardiola31337 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@zugaldia
zugaldia merged commit fae8a02 into release-ios-v3.5.0-android-v5.0.0 Mar 11, 2017
@zugaldia
zugaldia deleted the az-instantiatable branch March 11, 2017 00:00
@zugaldia zugaldia added this to the android-v5.0.0 milestone Mar 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants