feat:use onBackPressed insted of finish whole activity in Android
This commit is contained in:
parent
cec878320f
commit
c5caf074cb
@ -51,7 +51,7 @@ public class BaseDoricNavBar extends FrameLayout implements IDoricNavBar {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (getContext() instanceof Activity) {
|
if (getContext() instanceof Activity) {
|
||||||
((Activity) getContext()).finish();
|
((Activity) getContext()).onBackPressed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user