Small lint fixes
This commit is contained in:
parent
ec3330af19
commit
264c1b217f
4 changed files with 2 additions and 21 deletions
|
@ -11,7 +11,7 @@ class TextViewModel(
|
|||
|
||||
val text = MutableLiveData<String>()
|
||||
|
||||
suspend fun loadText(@RawRes rawFile: Int) {
|
||||
fun loadText(@RawRes rawFile: Int) {
|
||||
val result = getApplication<Application>().resources.openRawResource(rawFile)
|
||||
.bufferedReader()
|
||||
.readLines()
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
package dev.lucasnlm.antimine.core.scope
|
||||
|
||||
import javax.inject.Scope
|
||||
|
||||
@Scope
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class ActivityScope
|
|
@ -1,12 +0,0 @@
|
|||
package dev.lucasnlm.antimine.core.utils
|
||||
|
||||
import android.content.Context
|
||||
import android.content.res.Configuration.UI_MODE_NIGHT_YES
|
||||
import android.content.res.Configuration.UI_MODE_NIGHT_MASK
|
||||
|
||||
fun isDarkModeEnabled(context: Context): Boolean {
|
||||
return when (context.resources.configuration.uiMode and UI_MODE_NIGHT_MASK) {
|
||||
UI_MODE_NIGHT_YES -> true
|
||||
else -> false
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ package dev.lucasnlm.antimine.common.level.mocks
|
|||
import dev.lucasnlm.antimine.common.level.repository.IDimensionRepository
|
||||
import dev.lucasnlm.antimine.common.level.repository.Size
|
||||
|
||||
class FixedDimensionRepository() : IDimensionRepository {
|
||||
class FixedDimensionRepository : IDimensionRepository {
|
||||
override fun areaSize(): Float = 50.0f
|
||||
|
||||
override fun areaSizeWithPadding(): Float {
|
||||
|
|
Loading…
Reference in a new issue