|
|
|
@ -208,17 +208,15 @@ public class MineFragment extends BaseFragment { |
|
|
|
|
@Override |
|
|
|
|
protected void initClick() { |
|
|
|
|
super.initClick(); |
|
|
|
|
binding.mineRlUser.setOnClickListener(v -> { |
|
|
|
|
StoragePermissionUtils.request(this, (permissions, all) -> { |
|
|
|
|
if (isLogin) { |
|
|
|
|
Intent intent = new Intent(getActivity(), UserInfoActivity.class); |
|
|
|
|
startActivityForResult(intent, APPCONST.REQUEST_LOGOUT); |
|
|
|
|
} else { |
|
|
|
|
Intent intent = new Intent(getActivity(), LoginActivity.class); |
|
|
|
|
getActivity().startActivityForResult(intent, APPCONST.REQUEST_LOGIN); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
binding.mineRlUser.setOnClickListener(v -> StoragePermissionUtils.request(this, (permissions, all) -> { |
|
|
|
|
if (isLogin) { |
|
|
|
|
Intent intent = new Intent(getActivity(), UserInfoActivity.class); |
|
|
|
|
startActivityForResult(intent, APPCONST.REQUEST_LOGOUT); |
|
|
|
|
} else { |
|
|
|
|
Intent intent = new Intent(getActivity(), LoginActivity.class); |
|
|
|
|
getActivity().startActivityForResult(intent, APPCONST.REQUEST_LOGIN); |
|
|
|
|
} |
|
|
|
|
})); |
|
|
|
|
binding.mineRlSyn.setOnClickListener(v -> { |
|
|
|
|
if (!isLogin) { |
|
|
|
|
ToastUtils.showWarring("请先登录!"); |
|
|
|
|