private long lastTime = 0;
@Override
public void onBackPressed() {
if (System.currentTimeMillis() - lastTime < 3000) {
finish();
} else {
lastTime = System.currentTimeMillis();
TipTools.showToast(base, "再按一次退出!");
}
}
@Override
public void onBackPressed() {
if (System.currentTimeMillis() - lastTime < 3000) {
finish();
} else {
lastTime = System.currentTimeMillis();
TipTools.showToast(base, "再按一次退出!");
}
}