From bcad856ba86b1e2982538e7478f896f5271c7ccd Mon Sep 17 00:00:00 2001 From: Semper-Viventem Date: Fri, 27 Jul 2018 17:42:46 +0300 Subject: [PATCH] Update image and base screen --- .../ru/semper_viventem/backdropview/ui/common/Screen.kt | 7 +++---- .../ru/semper_viventem/backdropview/ui/text/TextScreen.kt | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/common/Screen.kt b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/common/Screen.kt index 5f7b67f..b201c92 100644 --- a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/common/Screen.kt +++ b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/common/Screen.kt @@ -1,6 +1,5 @@ package ru.semper_viventem.backdropview.ui.common -import android.content.Context import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater @@ -22,10 +21,10 @@ abstract class Screen : Fragment { return inflater.inflate(layoutId, container, false) } - override fun onStart() { - super.onStart() + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) - onInitView(view!!) + onInitView(view) } abstract fun onInitView(view: View) diff --git a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/text/TextScreen.kt b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/text/TextScreen.kt index 0f5863b..3dc9bcc 100644 --- a/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/text/TextScreen.kt +++ b/sample/src/main/kotlin/ru/semper_viventem/backdropview/ui/text/TextScreen.kt @@ -13,6 +13,6 @@ class TextScreen : Screen() { override fun onInitView(view: View) { - view.image.load("http://mariakucherenko.com/wp-content/uploads/2011/08/20110814_%D0%BA%D0%BE%D1%82.jpg") + view.image.load("https://habrastorage.org/webt/r9/p8/fi/r9p8figkbszo_cyhdg-6nad4mp0.png") } } \ No newline at end of file