Observable.timer(2, TimeUnit.SECONDS) .observeOn(AndroidSchedulers.mainThread()) .compose(this.<Long>bindUntilEvent(ActivityEvent.DESTROY)) .subscribe(new Consumer<Long>() { @Override public void accept(@NonNull Long aLong) throws Exception { AccountActivity.show(SplashActivity.this); finish(); } }); } else { //到检查登录页面 AccountActivity.show(SplashActivity.this); finish(); }
rxjava 启动页跳到首页
最新推荐文章于 2022-09-04 14:11:29 发布