Skip to content

Commit

Permalink
yoyiyi
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyiyi committed Sep 14, 2017
1 parent 394b67c commit 615fcbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 2 additions & 6 deletions app/src/main/java/com/yoyiyi/soleil/base/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import butterknife.ButterKnife;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;


/**
Expand Down Expand Up @@ -270,10 +269,7 @@ protected void visible(final @IdRes int... id) {

private View $(@IdRes int id) {
View view;
if (this != null) {
view = this.findViewById(id);
return view;
}
return null;
view = this.findViewById(id);
return view;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import android.view.KeyEvent;
import android.view.MenuItem;

import com.yoyiyi.soleil.BiliSoleilApplication;
import com.yoyiyi.soleil.R;
import com.yoyiyi.soleil.base.BaseActivity;
import com.yoyiyi.soleil.constant.Constants;
Expand Down Expand Up @@ -116,7 +115,10 @@ private void exitApp() {
ToastUtils.showToast("再按一次退出");
exitTime = System.currentTimeMillis();
} else {
BiliSoleilApplication.getInstance().exitApp();
// BiliSoleilApplication.getInstance().exitApp();
Event.ExitEvent event = new Event.ExitEvent();
event.exit = -1;
RxBus.INSTANCE.post(event);
}
}

Expand Down

0 comments on commit 615fcbc

Please sign in to comment.