File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
kotlinyan-common/src/main/kotlin/moe/feng/kotlinyan/common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ interface ResourcesExtensions {
3232 }
3333
3434 class DrawableResources internal constructor(private val res : Resources ) {
35- operator fun get (id : Int ): Drawable ? = res.getDrawable(id)
35+ operator fun get (id : Int ): Drawable = res.getDrawable(id)
3636 }
3737
3838 class DimensionResources internal constructor(private val res : Resources ) {
@@ -48,11 +48,11 @@ interface ResourcesExtensions {
4848 }
4949
5050 class LayoutResources internal constructor(private val res : Resources ) {
51- operator fun get (id : Int ) : XmlResourceParser ? = res.getLayout(id)
51+ operator fun get (id : Int ) : XmlResourceParser = res.getLayout(id)
5252 }
5353
5454 class StringResources internal constructor(private val res : Resources ) {
55- operator fun get (id : Int ) : String? = res.getString(id)
55+ operator fun get (id : Int ) : String = res.getString(id)
5656 }
5757
5858 class StringArrayResources internal constructor(private val res : Resources ) {
You can’t perform that action at this time.
0 commit comments