File tree Expand file tree Collapse file tree
utils/src/main/java/com/haoge/easyandroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,13 +172,13 @@ Thread.currentThread().setUncaughtExceptionHandler {
172172派发器的本质,是一个` Executor ` 接口的实现类:
173173
174174```
175- internal var deliver:Executor = UIDeliver
175+ private var deliver:Executor = UIDeliver
176176```
177177
178178而默认使用的` UIDeliver ` ,就是专门针对` Android运行时环境 ` 创建的:** 将消息派发到UI线程进行通知**
179179
180180```
181- internal val UIDeliver:Executor = Executor { runnable ->
181+ private val UIDeliver:Executor = Executor { runnable ->
182182 if (Looper.myLooper() == Looper.getMainLooper()) {
183183 runnable.run()
184184 } else {
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ class RationalChain internal constructor(private val denies: MutableIterator<Str
179179 noticeAccept(false )
180180 }
181181
182- internal fun noticeAccept (accept : Boolean ) {
182+ private fun noticeAccept (accept : Boolean ) {
183183 result.invoke(accept)
184184 }
185185}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class MVPDispatcher{
2424 /* *
2525 * 移除制定的Presenter实例。并将其与View解绑。
2626 */
27- internal fun <V : MVPView > removePresenter (presenter : MVPPresenter <V >) {
27+ fun <V : MVPView > removePresenter (presenter : MVPPresenter <V >) {
2828 if (presenters.contains(presenter)) {
2929 presenters.remove(presenter)
3030 if (presenter.isViewAttached()) {
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ import android.view.ContextThemeWrapper
1414 *
1515 * AUTHOR: haoge
1616 */
17- internal object SafeDialogHandle {
17+ object SafeDialogHandle {
1818
19- internal val mainHandler by lazy { return @lazy Handler (Looper .getMainLooper()) }
19+ private val mainHandler = Handler (Looper .getMainLooper())
2020
2121 fun safeShowDialog (dialog : Dialog ? ) {
2222 if (Looper .myLooper() == Looper .getMainLooper()) {
You can’t perform that action at this time.
0 commit comments