提交 fe7451bb 编写于 作者: 门心叼龙's avatar 门心叼龙

code perfect

上级 66bab216
......@@ -6,9 +6,6 @@
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<MarkdownNavigatorCodeStyleSettings>
<option name="RIGHT_MARGIN" value="72" />
</MarkdownNavigatorCodeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
......
......@@ -12,10 +12,10 @@ import com.trello.rxlifecycle2.LifecycleProvider
* Update: <br>
</BaseModel> */
open class BaseModel(val context: Context) {
var lifecycle: LifecycleProvider<Any>? = null
var lifecycle: LifecycleProvider<*>? = null
private set
fun injectLifecycle(lifecycle: LifecycleProvider<Any>) {
fun injectLifecycle(lifecycle: LifecycleProvider<*>) {
this.lifecycle = lifecycle
}
......
......@@ -59,7 +59,7 @@ class DaisyRefreshLayout(context: Context, attrs: AttributeSet) :
}
override fun showRefresh() {
mDaisyHeaderView?.onRefresh()
mDaisyHeaderView.onRefresh()
}
@RequiresApi(Build.VERSION_CODES.KITKAT)
......
package com.fly.tour.test.lambda
/**
* Description: <Lambda><br>
* Author: mxdl<br>
* Date: 2020/2/24<br>
* Version: V1.0.0<br>
* Update: <br>
*/
fun main(args: Array<String>) {
var result = add(1,2);
println("result:$result")
}
//1.加法
fun add(x:Int,y:Int): Int{
return x + y
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册