Fix ktlint

This commit is contained in:
Lucas Lima 2020-06-28 01:04:09 -03:00
parent 5c46f73328
commit 871ad9d562
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7
4 changed files with 4 additions and 9 deletions

View file

@ -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.*

View file

@ -35,4 +35,4 @@ class ControlViewModelTest {
assertEquals(ControlStyle.FastFlag, viewModel.controlTypeSelected.value)
verify { preferenceRepository.useControlStyle(ControlStyle.FastFlag) }
}
}
}

View file

@ -15,7 +15,7 @@ interface IPreferencesManager {
class PreferencesManager @Inject constructor(
private val context: Context
): IPreferencesManager {
) : IPreferencesManager {
private val preferences by lazy {
PreferenceManager.getDefaultSharedPreferences(context)
}

View file

@ -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))
}
}
}