Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix using deprecated constants in Android API Level 29
Summary: Changelog: [Internal] # Context FB4A recently updated from [Android API level 28 to level 29](https://fb.workplace.com/groups/782862961920333/permalink/1409529345920355/). This [deprecated](https://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns#LATITUDE) the constants `Images.Media.Latitude` and `Image.Media.Longitude`, and we started to get the exception found in the attached task. # This diff Similar to this [pull request](react-native-cameraroll/react-native-cameraroll#170), it removes the usage of the deprecated latitude and longitude constants. However for our case I don't know if latitude and longitude are being used or not, so for this diff I will check on the Android API level before adding the latitude and longitude in the project list. This is a similar implementation to the [first version](react-native-cameraroll/react-native-cameraroll@adeeb3e) of the above pull request where it checks the api level before extracting the location data. Differential Revision: D21774607 fbshipit-source-id: 632ea871b530b8e157f4ca74a5bc319b2abf7ba5
- Loading branch information