Skip to content

Commit

Permalink
上传RxLifecycleDemo.apk
Browse files Browse the repository at this point in the history
  • Loading branch information
alidili committed Jul 5, 2017
1 parent ffe78a6 commit dff39e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file added RxLifecycleDemo/RxLifecycleDemo.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}

private void initData() {
// 每隔1s执行一次事件
Observable.interval(1, TimeUnit.SECONDS)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
Expand Down

0 comments on commit dff39e0

Please sign in to comment.