diff options
author | Allan Wang <me@allanwang.ca> | 2018-12-25 22:27:23 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-12-25 22:27:23 -0500 |
commit | d1ed8498e56b4580f27af8142e3e401e2841872e (patch) | |
tree | 666d3892564bce7e4f0c04d0becb635562be899a /app/src/main/kotlin/com/pitchedapps | |
parent | 9fb5d8a3d21eea3501740d01a254c7ce51e2a9af (diff) | |
download | frost-d1ed8498e56b4580f27af8142e3e401e2841872e.tar.gz frost-d1ed8498e56b4580f27af8142e3e401e2841872e.tar.bz2 frost-d1ed8498e56b4580f27af8142e3e401e2841872e.zip |
Introduce android ktx
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/intro/IntroMainFragments.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroMainFragments.kt b/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroMainFragments.kt index a4f9e193..8536dd1a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroMainFragments.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroMainFragments.kt @@ -25,6 +25,7 @@ import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.constraintlayout.widget.ConstraintLayout +import androidx.core.view.children import androidx.fragment.app.Fragment import ca.allanwang.kau.kotlin.LazyResettableRegistry import ca.allanwang.kau.utils.Kotterknife @@ -33,7 +34,6 @@ import ca.allanwang.kau.utils.setOnSingleTapListener import com.pitchedapps.frost.R import com.pitchedapps.frost.activities.IntroActivity import com.pitchedapps.frost.utils.Prefs -import org.jetbrains.anko.childrenSequence /** * Created by Allan Wang on 2017-07-28. @@ -95,7 +95,7 @@ abstract class BaseIntroFragment(val layoutRes: Int) : Fragment() { } protected open fun themeFragmentImpl() { - view?.childrenSequence()?.forEach { (it as? TextView)?.setTextColor(Prefs.textColor) } + (view as? ViewGroup)?.children?.forEach { (it as? TextView)?.setTextColor(Prefs.textColor) } } protected val viewArray: Array<Array<out View>> by lazyResettableRegistered { viewArray() } |