diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-23 16:10:45 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-23 16:10:45 -0800 |
commit | 7b5bf87a3f5ce8f7fd3c95ed889076f4869f0310 (patch) | |
tree | aac290e3cdd256b119e5f1865e08bda217b935aa /app/src/main/kotlin/com/pitchedapps/frost/views | |
parent | c8b54fd10a08ed53eb7d21578a4fe990fe14e3bc (diff) | |
download | frost-7b5bf87a3f5ce8f7fd3c95ed889076f4869f0310.tar.gz frost-7b5bf87a3f5ce8f7fd3c95ed889076f4869f0310.tar.bz2 frost-7b5bf87a3f5ce8f7fd3c95ed889076f4869f0310.zip |
Remove koincomponent from activities and apply spotless
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views')
4 files changed, 4 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt index effa8ad4..8a76c424 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt @@ -45,7 +45,7 @@ import org.koin.core.inject * Created by Allan Wang on 2017-06-05. */ class AccountItem(val cookie: CookieEntity?) : - KauIItem<AccountItem.ViewHolder>(R.layout.view_account, { ViewHolder(it) }, R.id.item_account) , + KauIItem<AccountItem.ViewHolder>(R.layout.view_account, { ViewHolder(it) }, R.id.item_account), KoinComponent { private val prefs: Prefs by inject() diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt index bc5c6bcc..462f09ae 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt @@ -42,7 +42,6 @@ class BadgedIcon @JvmOverloads constructor( defStyleAttr: Int = 0 ) : ConstraintLayout(context, attrs, defStyleAttr), KoinComponent { - private val prefs: Prefs by inject() private val binding: ViewBadgedIconBinding = ViewBadgedIconBinding.inflate(LayoutInflater.from(context), this, true) diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoViewer.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoViewer.kt index 7b4bd096..16df7f8e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoViewer.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoViewer.kt @@ -57,7 +57,7 @@ class FrostVideoViewer @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 -) : FrameLayout(context, attrs, defStyleAttr), FrostVideoViewerContract , KoinComponent { +) : FrameLayout(context, attrs, defStyleAttr), FrostVideoViewerContract, KoinComponent { companion object { /** diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt index f275aad8..3b1fc3ca 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt @@ -41,11 +41,11 @@ import com.pitchedapps.frost.web.FrostChromeClient import com.pitchedapps.frost.web.FrostJSI import com.pitchedapps.frost.web.FrostWebViewClient import com.pitchedapps.frost.web.NestedWebView -import org.koin.core.KoinComponent -import org.koin.core.inject import kotlin.math.abs import kotlin.math.max import kotlin.math.min +import org.koin.core.KoinComponent +import org.koin.core.inject /** * Created by Allan Wang on 2017-05-29. |