aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-30 16:43:25 -0800
committerAllan Wang <me@allanwang.ca>2019-12-30 16:43:25 -0800
commit115b1791ada343435544c0f794830c6327f561de (patch)
treeb8861ddfe8d2874a99826cd2351f0c5f922f829a /app/src/main/kotlin/com
parent5900447070f220654874a975e841a42ee3a85907 (diff)
downloadfrost-115b1791ada343435544c0f794830c6327f561de.tar.gz
frost-115b1791ada343435544c0f794830c6327f561de.tar.bz2
frost-115b1791ada343435544c0f794830c6327f561de.zip
Do not reuse nav background
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
index a0f2c080..eb35ee77 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -125,10 +125,10 @@ import com.pitchedapps.frost.views.BadgedIcon
import com.pitchedapps.frost.views.FrostVideoViewer
import com.pitchedapps.frost.views.FrostViewPager
import com.pitchedapps.frost.widgets.NotificationWidget
-import kotlin.math.abs
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
+import kotlin.math.abs
/**
* Created by Allan Wang on 20/12/17.
@@ -531,7 +531,6 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
val glide = Glide.with(root)
val accountSize = dimenPixelSize(R.dimen.drawer_account_avatar_size)
val textColor = Prefs.textColor
- val navBackground = createNavDrawable()
orderedAccounts.forEach { cookie ->
val tv =
TextView(
@@ -565,7 +564,7 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
})
tv.text = cookie.name
tv.setTextColor(textColor)
- tv.background = navBackground
+ tv.background = createNavDrawable()
tv.setOnClickListener {
switchAccount(cookie.id)
}