Skip to content

Commit cf51fc7

Browse files
committed
update codes
1 parent 677d113 commit cf51fc7

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/EasyExecutor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

utils/src/main/java/com/haoge/easyandroid/easy/EasyPermissions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

utils/src/main/java/com/haoge/easyandroid/mvp/MVPDispatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

utils/src/main/java/com/haoge/easyandroid/safe/SafeDialogHandle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)