aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/dbflow
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-20 11:33:30 -0700
committerAllan Wang <me@allanwang.ca>2017-08-20 11:33:30 -0700
commit62e10aa1295bdcd99e307b22b4747bb5353cd5d7 (patch)
tree4bda456b228adae88e7bd86d3ac317da489cbf5d /app/src/main/kotlin/com/pitchedapps/frost/dbflow
parent14efdd91a4ac11babec7f182ce78f3a1a1b27a00 (diff)
downloadfrost-62e10aa1295bdcd99e307b22b4747bb5353cd5d7.tar.gz
frost-62e10aa1295bdcd99e307b22b4747bb5353cd5d7.tar.bz2
frost-62e10aa1295bdcd99e307b22b4747bb5353cd5d7.zip
Fix material light theme so colors do not get covered
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/dbflow')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/dbflow/CookiesDb.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/dbflow/CookiesDb.kt b/app/src/main/kotlin/com/pitchedapps/frost/dbflow/CookiesDb.kt
index 92cdf503..949659f6 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/dbflow/CookiesDb.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/dbflow/CookiesDb.kt
@@ -32,7 +32,8 @@ object CookiesDb {
@Table(database = CookiesDb::class, allFields = true, primaryKeyConflict = ConflictAction.REPLACE)
data class CookieModel(@PrimaryKey var id: Long = -1L, var name: String? = null, var cookie: String? = null) : BaseModel(), Parcelable {
companion object {
- @JvmField val CREATOR = PaperParcelCookieModel.CREATOR
+ @JvmField
+ val CREATOR = PaperParcelCookieModel.CREATOR
}
override fun describeContents() = 0
@@ -60,14 +61,13 @@ fun saveFbCookie(cookie: CookieModel, callback: (() -> Unit)? = null) {
}
fun removeCookie(id: Long) {
- loadFbCookie(id)?.async?.delete({
+ loadFbCookie(id)?.async?.delete {
L.d("Fb cookie deleted", id.toString())
- })
+ }
}
fun CookieModel.fetchUsername(callback: (String) -> Unit) {
- ReactiveNetwork.checkInternetConnectivity().subscribeOn(Schedulers.io()).subscribe {
- yes, _ ->
+ ReactiveNetwork.checkInternetConnectivity().subscribeOn(Schedulers.io()).subscribe { yes, _ ->
if (!yes) return@subscribe callback("")
var result = ""
try {