DetailActivity 添加QQ分享回调
This commit is contained in:
@ -19,7 +19,6 @@ import android.widget.LinearLayout;
|
||||
import android.widget.PopupWindow;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.gh.gamecenter.R;
|
||||
import com.nostra13.universalimageloader.core.assist.FailReason;
|
||||
@ -287,7 +286,6 @@ public class ShareUtils {
|
||||
|
||||
if (shareNewsTitle != null){
|
||||
params.putString(QzoneShare.SHARE_TO_QQ_TITLE, shareNewsTitle);
|
||||
// params.putString(QzoneShare.SHARE_TO_QQ_SUMMARY, shareNewsTitle);
|
||||
}else {
|
||||
params.putString(QzoneShare.SHARE_TO_QQ_TITLE, "向你推荐:");
|
||||
if (isPlugin){
|
||||
@ -464,6 +462,7 @@ public class ShareUtils {
|
||||
(result.getHeight() - result.getWidth()) / 2, null);
|
||||
canvas.save(Canvas.ALL_SAVE_FLAG);
|
||||
canvas.restore();
|
||||
|
||||
return newmap;
|
||||
}
|
||||
|
||||
@ -497,17 +496,17 @@ public class ShareUtils {
|
||||
public IUiListener QqShareListener = new IUiListener() {
|
||||
@Override
|
||||
public void onComplete(Object o) {
|
||||
Toast.makeText(context, "分享成功", Toast.LENGTH_SHORT).show();
|
||||
Utils.toast(context, "分享成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(UiError uiError) {
|
||||
Toast.makeText(context, "分享失败", Toast.LENGTH_SHORT).show();
|
||||
Utils.toast(context, "分享失败");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
Toast.makeText(context, "分享已取消", Toast.LENGTH_SHORT).show();
|
||||
Utils.toast(context, "分享已取消");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user