ref: 68ae37f62658ef2b5dfe364bfa283d03b4f35951
app/src/main/java/xyz/apiote/bimba/czwek/Bimba.kt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// SPDX-FileCopyrightText: Adam Evyčędo // // SPDX-License-Identifier: GPL-3.0-or-later package xyz.apiote.bimba.czwek import org.osmdroid.config.Configuration import java.io.File class Bimba : android.app.Application() { override fun onCreate() { super.onCreate() Configuration.getInstance() .let { config -> config.load( applicationContext, applicationContext.getSharedPreferences("shp", MODE_PRIVATE) ) config.osmdroidBasePath = File(applicationContext.cacheDir.absolutePath, "osmdroid") config.osmdroidTileCache = File(config.osmdroidBasePath.absolutePath, "tile") } } } |