feat:use onBackPressed insted of finish whole activity in Android

This commit is contained in:
pengfei.zhou 2019-11-25 14:41:34 +08:00
parent cec878320f
commit c5caf074cb

View File

@ -51,7 +51,7 @@ public class BaseDoricNavBar extends FrameLayout implements IDoricNavBar {
@Override
public void onClick(View v) {
if (getContext() instanceof Activity) {
((Activity) getContext()).finish();
((Activity) getContext()).onBackPressed();
}
}
});