📜  kotlin 返回上一个活动 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.750000             🧑  作者: Mango

代码示例1
if you use fragment u should use

getActivity().onBackPressed();
if you use single activity u can use

finish();