diff --git a/app/src/main/java/code/name/monkey/retromusic/mvp/presenter/SearchPresenter.kt b/app/src/main/java/code/name/monkey/retromusic/mvp/presenter/SearchPresenter.kt index 3c6441a3..ed4a4df7 100644 --- a/app/src/main/java/code/name/monkey/retromusic/mvp/presenter/SearchPresenter.kt +++ b/app/src/main/java/code/name/monkey/retromusic/mvp/presenter/SearchPresenter.kt @@ -18,10 +18,7 @@ import code.name.monkey.retromusic.mvp.BaseView import code.name.monkey.retromusic.mvp.Presenter import code.name.monkey.retromusic.mvp.PresenterImpl import code.name.monkey.retromusic.providers.interfaces.Repository -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.Job -import kotlinx.coroutines.launch +import kotlinx.coroutines.* import javax.inject.Inject import kotlin.coroutines.CoroutineContext @@ -55,7 +52,7 @@ interface SearchPresenter : Presenter { override fun search(query: String?) { launch { val result = repository.search(query) - view?.showData(result) + withContext(Dispatchers.Main) { view?.showData(result) } } } } diff --git a/app/src/main/res/layout/sub_header.xml b/app/src/main/res/layout/sub_header.xml index 0ad40cce..5a638f25 100644 --- a/app/src/main/res/layout/sub_header.xml +++ b/app/src/main/res/layout/sub_header.xml @@ -8,6 +8,6 @@ android:gravity="start" android:paddingHorizontal="16dp" android:paddingVertical="12dp" - android:textAppearance="@style/TextViewHeadline6" + android:textAppearance="@style/TextViewOverline" android:textStyle="bold" tools:text="@tools:sample/full_names" /> \ No newline at end of file