Commit b338b557 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

dis fixes

parent 1b342e91
...@@ -20,6 +20,7 @@ import com.biganto.visual.roompark.domain.use_case.DownloadUseCase ...@@ -20,6 +20,7 @@ import com.biganto.visual.roompark.domain.use_case.DownloadUseCase
import com.biganto.visual.roompark.util.view_utils.snackbar.ISnackBarProvider import com.biganto.visual.roompark.util.view_utils.snackbar.ISnackBarProvider
import com.bluelinelabs.conductor.Controller import com.bluelinelabs.conductor.Controller
import com.bumptech.glide.Glide import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.FitCenter
import com.google.android.material.textview.MaterialTextView import com.google.android.material.textview.MaterialTextView
import dagger.Binds import dagger.Binds
import dagger.BindsInstance import dagger.BindsInstance
...@@ -51,6 +52,7 @@ class DownloadPlansDialogController : Controller { ...@@ -51,6 +52,7 @@ class DownloadPlansDialogController : Controller {
lateinit var downloaderBg: ImageView lateinit var downloaderBg: ImageView
lateinit var downloadTourTitleText: MaterialTextView lateinit var downloadTourTitleText: MaterialTextView
lateinit var cancelDownloadText: MaterialTextView lateinit var cancelDownloadText: MaterialTextView
lateinit var downloadingContentText: MaterialTextView
override fun onContextAvailable(context: Context) { override fun onContextAvailable(context: Context) {
super.onContextAvailable(context) super.onContextAvailable(context)
...@@ -86,6 +88,8 @@ class DownloadPlansDialogController : Controller { ...@@ -86,6 +88,8 @@ class DownloadPlansDialogController : Controller {
downloaderBg = view.findViewById(R.id.backgroundDownloader) downloaderBg = view.findViewById(R.id.backgroundDownloader)
cancelDownloadText = view.findViewById(R.id.cancelDownloadButton) cancelDownloadText = view.findViewById(R.id.cancelDownloadButton)
downloadTourTitleText = view.findViewById(R.id.tourToDownloadTitle) downloadTourTitleText = view.findViewById(R.id.tourToDownloadTitle)
downloadingContentText = view.findViewById(R.id.downloadingTitle)
downloadingContentText.text = resources?.getString(R.string.download_plan_types_screen_title)
// progress.visibility = View.VISIBLE // progress.visibility = View.VISIBLE
...@@ -94,10 +98,10 @@ class DownloadPlansDialogController : Controller { ...@@ -94,10 +98,10 @@ class DownloadPlansDialogController : Controller {
downloadTourTitleText.text = "" downloadTourTitleText.text = ""
Glide.with(view) Glide.with(view)
.load(R.drawable.ic_plan) .load(R.drawable.flat_placeholder)
.fitCenter() .transform(BlurTransformation(13, 4)
.transform(BlurTransformation(25, 12) ,ColorFilterTransformation(0x99000000.toInt())
,ColorFilterTransformation(0x99000000.toInt())) ,FitCenter())
.into(downloaderBg) .into(downloaderBg)
disposables.add( disposables.add(
......
...@@ -124,5 +124,6 @@ ...@@ -124,5 +124,6 @@
<string name="download_all_tours_settings_with_size">Скачать виртуальные туры моих квартир из избранного и сделок (%s)</string> <string name="download_all_tours_settings_with_size">Скачать виртуальные туры моих квартир из избранного и сделок (%s)</string>
<string name="download_all_plan_types_settings_with_sizes">Скачать карточки моих квартир из избранного и сделок (%s)</string> <string name="download_all_plan_types_settings_with_sizes">Скачать карточки моих квартир из избранного и сделок (%s)</string>
<string name="plan_types_download_completed">Загрузка планов завершена.</string> <string name="plan_types_download_completed">Загрузка планов завершена.</string>
<string name="download_plan_types_screen_title">Cкачиваются планировки</string>
</resources> </resources>
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