@@ -177,6 +177,16 @@ public class CouponMallFragment extends FragmentBase<CouponMallPresenter> implem
}
+ @Override
+ public boolean onBack() {
+ if (webView.canGoBack()) {
+ webView.goBack();
+ return true;
+ }
+
+ return false;
protected String htmlData = "<html>\n" +
"<head>\n" +
"\t<script language=\"JavaScript\">\n" +
@@ -79,7 +79,9 @@ public class CouponMallPresenter extends Presenter<CouponMallModel, ICouponMallV
@Override
public boolean onBackPressedInternal() {
- back(ScreenID.ALL_MENU);
+ if (view.onBack() == false) {
+ back(ScreenID.ALL_MENU);
return true;
@@ -22,4 +22,6 @@ public interface ICouponMallView extends IView {
// fixme for test
void loadDate();
+ boolean onBack();