mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-12 14:03:00 +01:00
Optimize imports
This commit is contained in:
parent
12f491737e
commit
9e201159fd
@ -6,7 +6,7 @@ import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNull
|
||||
|
||||
class CookieDbTest : BaseDbTest() {
|
||||
|
||||
|
||||
private val dao get() = db.cookieDao()
|
||||
|
||||
@Test
|
||||
|
@ -7,7 +7,7 @@ import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class FbTabsDbTest : BaseDbTest() {
|
||||
|
||||
|
||||
private val dao get() = db.tabDao()
|
||||
|
||||
/**
|
||||
|
@ -86,8 +86,7 @@ class MainActivity : BaseMainActivity() {
|
||||
(tab.customView as BadgedIcon).badgeText = null
|
||||
}
|
||||
})
|
||||
headerBadgeChannel.subscribeDuringJob(this, Dispatchers.IO) {
|
||||
html ->
|
||||
headerBadgeChannel.subscribeDuringJob(this, Dispatchers.IO) { html ->
|
||||
try {
|
||||
val doc = Jsoup.parse(html)
|
||||
if (doc.select("[data-sigil=count]").isEmpty())
|
||||
|
@ -82,6 +82,4 @@ data class CookieModel(@PrimaryKey var id: Long = -1L, var name: String? = null,
|
||||
BaseModel(), Parcelable {
|
||||
|
||||
override fun toString(): String = "CookieModel(${hashCode()})"
|
||||
|
||||
fun toSensitiveString(): String = "CookieModel(id=$id, name=$name, cookie=$cookie)"
|
||||
}
|
@ -17,7 +17,6 @@
|
||||
package com.pitchedapps.frost.facebook.parsers
|
||||
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.CookieModel
|
||||
import com.pitchedapps.frost.facebook.FB_CSS_URL_MATCHER
|
||||
import com.pitchedapps.frost.facebook.formattedFbUrl
|
||||
import com.pitchedapps.frost.facebook.get
|
||||
|
@ -17,7 +17,6 @@
|
||||
package com.pitchedapps.frost.facebook.parsers
|
||||
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.CookieModel
|
||||
import com.pitchedapps.frost.facebook.FB_EPOCH_MATCHER
|
||||
import com.pitchedapps.frost.facebook.FB_MESSAGE_NOTIF_ID_MATCHER
|
||||
import com.pitchedapps.frost.facebook.FbItem
|
||||
|
@ -17,7 +17,6 @@
|
||||
package com.pitchedapps.frost.facebook.parsers
|
||||
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.CookieModel
|
||||
import com.pitchedapps.frost.facebook.FB_EPOCH_MATCHER
|
||||
import com.pitchedapps.frost.facebook.FB_NOTIF_ID_MATCHER
|
||||
import com.pitchedapps.frost.facebook.FbItem
|
||||
|
@ -23,7 +23,6 @@ import com.pitchedapps.frost.BuildConfig
|
||||
import com.pitchedapps.frost.R
|
||||
import com.pitchedapps.frost.db.CookieDao
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.NotificationDao
|
||||
import com.pitchedapps.frost.utils.L
|
||||
import com.pitchedapps.frost.utils.Prefs
|
||||
import com.pitchedapps.frost.utils.frostEvent
|
||||
|
@ -40,7 +40,6 @@ import ca.allanwang.kau.utils.withMinAlpha
|
||||
import com.devbrackets.android.exomedia.listener.VideoControlsVisibilityListener
|
||||
import com.mikepenz.google_material_typeface_library.GoogleMaterial
|
||||
import com.pitchedapps.frost.R
|
||||
import com.pitchedapps.frost.db.CookieModel_Table.cookie
|
||||
import com.pitchedapps.frost.db.FrostDatabase
|
||||
import com.pitchedapps.frost.db.currentCookie
|
||||
import com.pitchedapps.frost.utils.L
|
||||
|
@ -22,7 +22,6 @@ import com.pitchedapps.frost.activities.MainActivity
|
||||
import com.pitchedapps.frost.contracts.MainActivityContract
|
||||
import com.pitchedapps.frost.contracts.VideoViewHolder
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.CookieModel
|
||||
import com.pitchedapps.frost.facebook.FbCookie
|
||||
import com.pitchedapps.frost.utils.L
|
||||
import com.pitchedapps.frost.utils.Prefs
|
||||
|
@ -30,7 +30,6 @@ import ca.allanwang.kau.utils.fadeIn
|
||||
import ca.allanwang.kau.utils.isVisible
|
||||
import ca.allanwang.kau.utils.launchMain
|
||||
import com.pitchedapps.frost.db.CookieEntity
|
||||
import com.pitchedapps.frost.db.CookieModel
|
||||
import com.pitchedapps.frost.facebook.FB_LOGIN_URL
|
||||
import com.pitchedapps.frost.facebook.FB_USER_MATCHER
|
||||
import com.pitchedapps.frost.facebook.FbCookie
|
||||
|
@ -27,9 +27,9 @@ import org.junit.Assume.assumeTrue
|
||||
import java.io.File
|
||||
import java.util.zip.ZipFile
|
||||
import kotlin.test.AfterTest
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.BeforeTest
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertTrue
|
||||
|
Loading…
Reference in New Issue
Block a user