Fix ktlint
This commit is contained in:
parent
5c46f73328
commit
871ad9d562
4 changed files with 4 additions and 9 deletions
|
@ -1,15 +1,11 @@
|
|||
package dev.lucasnlm.antimine.about.views.thirds
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.activityViewModels
|
||||
import androidx.lifecycle.ViewModelProviders
|
||||
import androidx.recyclerview.widget.DividerItemDecoration
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
|
||||
import dev.lucasnlm.antimine.R
|
||||
import dev.lucasnlm.antimine.about.viewmodel.AboutViewModel
|
||||
import kotlinx.android.synthetic.main.fragment_third_party.*
|
||||
|
|
|
@ -35,4 +35,4 @@ class ControlViewModelTest {
|
|||
assertEquals(ControlStyle.FastFlag, viewModel.controlTypeSelected.value)
|
||||
verify { preferenceRepository.useControlStyle(ControlStyle.FastFlag) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ interface IPreferencesManager {
|
|||
|
||||
class PreferencesManager @Inject constructor(
|
||||
private val context: Context
|
||||
): IPreferencesManager {
|
||||
) : IPreferencesManager {
|
||||
private val preferences by lazy {
|
||||
PreferenceManager.getDefaultSharedPreferences(context)
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import org.junit.Assert.assertFalse
|
|||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
private class TestPreferenceManager: IPreferencesManager {
|
||||
private class TestPreferenceManager : IPreferencesManager {
|
||||
val values = mutableMapOf<String, Any>()
|
||||
|
||||
override fun getBoolean(key: String, defaultValue: Boolean): Boolean {
|
||||
|
@ -31,7 +31,6 @@ private class TestPreferenceManager: IPreferencesManager {
|
|||
override fun contains(key: String): Boolean {
|
||||
return values.containsKey(key)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PreferencesRepositoryTest {
|
||||
|
@ -59,4 +58,4 @@ class PreferencesRepositoryTest {
|
|||
assertTrue(preferenceManager.values["preference_double_click_open"] == null)
|
||||
assertFalse(preferencesRepository.getBoolean("preference_double_click_open", false))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue