use of net.iGap.request.RequestUserAvatarDelete in project iGap-Android by KianIranian-STDG.
the class FragmentShowAvatars method deletePhotoSetting.
// ******************************************************************************************************
private void deletePhotoSetting() {
G.onUserAvatarDelete = new OnUserAvatarDelete() {
@Override
public void onUserAvatarDelete(long avatarId, String token) {
AvatarHandler.clearCacheForOwnerId(avatarId);
if (onComplete != null)
onComplete.complete(true, "" + avatarId, "");
}
@Override
public void onUserAvatarDeleteError() {
}
};
if (viewPager.getCurrentItem() >= avatarList.size()) {
return;
}
new RequestUserAvatarDelete().userAvatarDelete(avatarList.get(viewPager.getCurrentItem()).getId());
}
Aggregations