Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #532 - Use ContextCompat to load drawable resources for scaling #571

Merged
merged 1 commit into from
Oct 31, 2019
Merged

Fix #532 - Use ContextCompat to load drawable resources for scaling #571

merged 1 commit into from
Oct 31, 2019

Conversation

barbeau
Copy link
Collaborator

@barbeau barbeau commented Oct 31, 2019

As discussed in #532 (comment), it seems the deprecated Drawable getDrawable (int id) implementation isn't properly handling drawable resource scaling in all cases,

This PR replaces the deprecated Drawable getDrawable (int id) with ContextCompat.getDrawable() to hopefully fix the intermittent Resources$NotFoundException crashes during clustering setup.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 31, 2019
@barbeau barbeau changed the title Fix 532 - Use ContextCompat to load drawable resources for scaling Fix #532 - Use ContextCompat to load drawable resources for scaling Oct 31, 2019
@barbeau barbeau merged commit a10c8f0 into googlemaps:master Oct 31, 2019
@barbeau barbeau deleted the 532-resource-not-found branch October 31, 2019 17:43
pauminku added a commit to pauminku/android-maps-utils that referenced this pull request Nov 26, 2019
* googleOrigin/master: (107 commits)
  Remove unnecessary interface method public modifiers. (googlemaps#587)
  Remove unnecessary primitives boxing. (googlemaps#586)
  Fix googlemaps#575 - Change Travis config, use matrix of API emulators (googlemaps#585)
  Retain the bitmap cache (googlemaps#381)
  Made GeoJsonParser with parseGeometry public to use the parser standalone. (googlemaps#492)
  Fix googlemaps#570 - Use project GitHub URL for remote KML loading demo (googlemaps#581)
  Bump Gradle plugin for Android Studio v3.5.2 (googlemaps#574)
  Fix googlemaps#575 - Use API 26 emulator instead of API 28 (googlemaps#576)
  Fix googlemaps#371 - Run emulator-based unit tests on Travis (googlemaps#573)
  Fix googlemaps#371 - Run emulator-based unit tests on Travis (googlemaps#573)
  Fix googlemaps#532 - Use ContextCompat to load drawable resources for scaling (googlemaps#571)
  Change test methods visibility (googlemaps#569)
  Release 0.6.2 (googlemaps#568)
  Demo clustering with ViewModel (googlemaps#506)
  Differentiate between initial start and configuration change restore (googlemaps#567)
  Fix wrapping around IDL (googlemaps#564)
  Update Gradle wrapper to 5.6.3 (googlemaps#566)
  Add MaxIntensity functionality for user defined intensities on HeatMapTiles (googlemaps#499)
  Use float zoom to calculate visible bounds (googlemaps#483)
  Remove apklib publishing (googlemaps#563)
  ...

# Conflicts:
#	library/src/androidTest/java/com/google/maps/android/PolyUtilTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants