Bimba.git

ref: 73cee3f10cf4b89f2e742db807d8f12bf4484548

app/src/main/java/xyz/apiote/bimba/czwek/repo/ErrorLocatable.kt


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
package xyz.apiote.bimba.czwek.repo

import android.content.Context
import android.graphics.drawable.Drawable
import androidx.appcompat.content.res.AppCompatResources
import xyz.apiote.bimba.czwek.R

class ErrorLocatable(val stringResource: Int) : Locatable {
	override fun icon(context: Context, scale: Float): Drawable {
		return AppCompatResources.getDrawable(context, R.drawable.error_other)!!
	}

	override fun location(): Position {
		return Position(0.0, 0.0)
	}

	override fun id(): String {
		return "ERROR"
	}
}