mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 20:12:39 +01:00
Fix imports
This commit is contained in:
parent
daf8f74ecf
commit
983a3dfa74
@ -34,6 +34,7 @@ import com.pitchedapps.frost.services.setupNotificationChannels
|
||||
import com.pitchedapps.frost.utils.BuildUtils
|
||||
import com.pitchedapps.frost.utils.FrostPglAdBlock
|
||||
import com.pitchedapps.frost.utils.L
|
||||
import java.util.Random
|
||||
import org.koin.android.ext.koin.androidContext
|
||||
import org.koin.android.ext.koin.androidLogger
|
||||
import org.koin.core.KoinComponent
|
||||
@ -41,7 +42,6 @@ import org.koin.core.context.startKoin
|
||||
import org.koin.core.get
|
||||
import org.koin.core.module.Module
|
||||
import org.koin.dsl.module
|
||||
import java.util.Random
|
||||
|
||||
/**
|
||||
* Created by Allan Wang on 2017-05-28.
|
||||
|
@ -28,6 +28,7 @@ import androidx.fragment.app.FragmentManager
|
||||
import androidx.fragment.app.FragmentPagerAdapter
|
||||
import androidx.viewpager.widget.ViewPager
|
||||
import ca.allanwang.kau.internal.KauBaseActivity
|
||||
import ca.allanwang.kau.utils.blendWith
|
||||
import ca.allanwang.kau.utils.color
|
||||
import ca.allanwang.kau.utils.fadeScaleTransition
|
||||
import ca.allanwang.kau.utils.navigationBarColor
|
||||
|
@ -48,6 +48,8 @@ import com.pitchedapps.frost.utils.logFrostEvent
|
||||
import com.pitchedapps.frost.utils.setFrostColors
|
||||
import com.pitchedapps.frost.utils.uniqueOnly
|
||||
import com.pitchedapps.frost.web.LoginWebView
|
||||
import java.net.UnknownHostException
|
||||
import kotlin.coroutines.resume
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.async
|
||||
import kotlinx.coroutines.channels.Channel
|
||||
@ -57,8 +59,6 @@ import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
import kotlinx.coroutines.withContext
|
||||
import kotlinx.coroutines.withTimeout
|
||||
import org.koin.android.ext.android.inject
|
||||
import java.net.UnknownHostException
|
||||
import kotlin.coroutines.resume
|
||||
|
||||
/**
|
||||
* Created by Allan Wang on 2017-06-01.
|
||||
|
@ -25,6 +25,7 @@ import ca.allanwang.kau.ui.createSimpleRippleDrawable
|
||||
import ca.allanwang.kau.utils.bindView
|
||||
import ca.allanwang.kau.utils.gone
|
||||
import ca.allanwang.kau.utils.visible
|
||||
import ca.allanwang.kau.utils.withAlpha
|
||||
import com.mikepenz.fastadapter.FastAdapter
|
||||
import com.mikepenz.fastadapter.adapters.ItemAdapter
|
||||
import com.mikepenz.fastadapter.diff.DiffCallback
|
||||
|
@ -102,8 +102,8 @@ enum class CssAssets(val folder: String = THEME_FOLDER) : InjectorContract {
|
||||
// Ensures that all non themes and the selected theme are loaded
|
||||
suspend fun load(context: Context, prefs: Prefs) {
|
||||
withContext(Dispatchers.IO) {
|
||||
val currentTheme = prefs.t.injector as? CssAssets
|
||||
val (themes, others) = CssAssets.values().partition { it.folder == THEME_FOLDER }
|
||||
val currentTheme = prefs.themeInjector as? CssAssets
|
||||
val (themes, others) = values().partition { it.folder == THEME_FOLDER }
|
||||
themes.filter { it != currentTheme }.forEach { it.reset() }
|
||||
currentTheme?.injector(context, prefs)
|
||||
others.forEach { it.injector(context, prefs) }
|
||||
|
@ -106,5 +106,4 @@ class BehaviourPrefsImpl(
|
||||
"full_size_image",
|
||||
oldPrefs.fullSizeImage /* false */
|
||||
)
|
||||
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ import com.pitchedapps.frost.prefs.PrefsBase
|
||||
import org.koin.core.KoinComponent
|
||||
import org.koin.core.inject
|
||||
|
||||
interface CorePrefs : PrefsBase {
|
||||
interface CorePrefs : PrefsBase {
|
||||
var lastLaunch: Long
|
||||
|
||||
var userId: Long
|
||||
|
@ -24,7 +24,7 @@ import com.pitchedapps.frost.prefs.PrefsBase
|
||||
import org.koin.core.KoinComponent
|
||||
import org.koin.core.inject
|
||||
|
||||
interface NotifPrefs : PrefsBase {
|
||||
interface NotifPrefs : PrefsBase {
|
||||
var notificationKeywords: Set<String>
|
||||
|
||||
var notificationsGeneral: Boolean
|
||||
|
@ -32,7 +32,7 @@ import com.pitchedapps.frost.prefs.PrefsBase
|
||||
import org.koin.core.KoinComponent
|
||||
import org.koin.core.inject
|
||||
|
||||
interface ThemePrefs : PrefsBase {
|
||||
interface ThemePrefs : PrefsBase {
|
||||
var theme: Int
|
||||
|
||||
var customTextColor: Int
|
||||
|
@ -44,6 +44,7 @@ import com.pitchedapps.frost.facebook.parsers.ParseNotification
|
||||
import com.pitchedapps.frost.glide.FrostGlide
|
||||
import com.pitchedapps.frost.glide.GlideApp
|
||||
import com.pitchedapps.frost.prefs.Prefs
|
||||
import com.pitchedapps.frost.settings.hasNotifications
|
||||
import com.pitchedapps.frost.utils.ARG_USER_ID
|
||||
import com.pitchedapps.frost.utils.L
|
||||
import com.pitchedapps.frost.utils.frostEvent
|
||||
|
Loading…
Reference in New Issue
Block a user