Commit 1e80d270 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Change link color to colorAccent

parent e0d9e0cf
...@@ -4,8 +4,8 @@ import android.app.Application ...@@ -4,8 +4,8 @@ import android.app.Application
import android.arch.persistence.room.Room import android.arch.persistence.room.Room
import android.content.Context import android.content.Context
import android.content.SharedPreferences import android.content.SharedPreferences
import android.graphics.Color
import chat.rocket.android.BuildConfig import chat.rocket.android.BuildConfig
import chat.rocket.android.R
import chat.rocket.android.app.RocketChatDatabase import chat.rocket.android.app.RocketChatDatabase
import chat.rocket.android.app.utils.CustomImageFormatConfigurator import chat.rocket.android.app.utils.CustomImageFormatConfigurator
import chat.rocket.android.authentication.infraestructure.MemoryTokenRepository import chat.rocket.android.authentication.infraestructure.MemoryTokenRepository
...@@ -206,14 +206,15 @@ class AppModule { ...@@ -206,14 +206,15 @@ class AppModule {
@Provides @Provides
@Singleton @Singleton
fun provideConfiguration(context: Application, client: OkHttpClient): SpannableConfiguration { fun provideConfiguration(context: Application, client: OkHttpClient): SpannableConfiguration {
val res = context.resources
return SpannableConfiguration.builder(context) return SpannableConfiguration.builder(context)
.asyncDrawableLoader(AsyncDrawableLoader.builder() .asyncDrawableLoader(AsyncDrawableLoader.builder()
.client(client) .client(client)
.executorService(Executors.newCachedThreadPool()) .executorService(Executors.newCachedThreadPool())
.resources(context.resources) .resources(res)
.build()) .build())
.theme(SpannableTheme.builder() .theme(SpannableTheme.builder()
.linkColor(Color.BLUE) .linkColor(res.getColor(R.color.colorAccent))
.build()) .build())
.build() .build()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment