Map: remove dead permissions code from Mapsforge map

google-maps-v2
Georg Lukas 2020-08-24 18:17:15 +02:00
rodzic 9638efe532
commit 7efbaff058
1 zmienionych plików z 0 dodań i 15 usunięć

Wyświetl plik

@ -88,21 +88,6 @@ class MapAct extends MapActivity with MapMenuHelper {
locReceiver.startTask(null)
}
def checkPermissions(): Boolean = {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
true
} else {
import android.Manifest
if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
if (shouldShowRequestPermissionRationale(Manifest.permission.WRITE_EXTERNAL_STORAGE))
Toast.makeText(this, getString(R.string.mapfile_error, "(no permission)"), Toast.LENGTH_SHORT).show()
requestPermissions(Array(Manifest.permission.WRITE_EXTERNAL_STORAGE), 0)
false
} else
true
}
}
val RELOAD_MAP = 1010
override def getActionName(action : Int): Int = {