Skip to content

Commit

Permalink
Bump Mapbox to fix crash on some samsung devices
Browse files Browse the repository at this point in the history
  • Loading branch information
JGerdes committed Aug 5, 2018
1 parent 32e0239 commit 42f506f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/jonasgerdes/stoppelmap/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class App : Application() {
}

private fun initMapbox() {
Mapbox.getInstance(applicationContext, "pk.NOT_USED")
TelemetryEnabler.updateTelemetryState(TelemetryEnabler.State.DISABLED)
Mapbox.getInstance(applicationContext, null)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class MapFragment : Fragment() {


class MarkerIcon(val name: String, val icon: Int)

private fun loadImages(map: MapboxMap) {
listOf(
MarkerIcon("bar", R.drawable.ic_stall_type_bar),
Expand Down Expand Up @@ -158,7 +159,7 @@ class MapFragment : Fragment() {
it.uiSettings.compassImage = context?.getDrawable(R.drawable.ic_navigation_black_24dp)
?.apply {
context?.getColorCompat(R.color.colorPrimary)?.let { color -> setTint(color) }
}
} ?: return
}

@SuppressLint("CheckResult")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
ext.support_version = '27.1.1'
ext.room_version = '1.1.1-rc1'
ext.arch_version = '1.1.1'
ext.mapbox_version = '6.1.3'
ext.mapbox_version = '6.3.0'
ext.rxjava_version = '2.1.7'
ext.rxkotlin_version = '2.2.0'
ext.rxbinding_version = '2.1.1'
Expand Down

0 comments on commit 42f506f

Please sign in to comment.