1、统一了entrance
2、统一了部分跳转intent,传参返回intent 3、修改出dialogfragment 4、clipboardmanager等处理
This commit is contained in:
@ -5,7 +5,6 @@ import android.content.*;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.*;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v7.widget.GridLayoutManager;
|
||||
@ -351,16 +350,8 @@ public class ShareUtils {
|
||||
|
||||
//新浪微博分享
|
||||
private void sinaWeiboSahre() {
|
||||
Intent intent = new Intent(mContext, WeiBoShareActivity.class);
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("shareNewsTitle", shareNewsTitle);
|
||||
bundle.putString("shareIcon", shareIcon);
|
||||
bundle.putString("shareGameName", shareGameName);
|
||||
bundle.putString("shareUrl", shareUrl);
|
||||
bundle.putBoolean("isPlugin", isPlugin);
|
||||
bundle.putBoolean("ispopupWindow", ispopupWindow);
|
||||
intent.putExtras(bundle);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
Intent intent = WeiBoShareActivity.getWeiboshareIntent(mContext,
|
||||
shareNewsTitle, shareIcon, shareGameName, shareUrl, isPlugin, ispopupWindow);
|
||||
mContext.startActivity(intent);
|
||||
|
||||
if (ispopupWindow) {
|
||||
@ -385,12 +376,8 @@ public class ShareUtils {
|
||||
smsBody = "这个App可以下载各种热门卡牌手游的加速版,绿色安全,超级省心,做日常效率提高3-5倍!光环助手官网地址:" + shareUrl;
|
||||
}
|
||||
|
||||
Intent sendIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("smsto:"));
|
||||
sendIntent.putExtra("sms_body", smsBody);
|
||||
sendIntent.setType("vnd.android-dir/mms-sms");
|
||||
|
||||
try {
|
||||
sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
Intent sendIntent = IntentUtils.getSMSIntent(smsBody);
|
||||
mContext.startActivity(sendIntent);
|
||||
} catch (Exception e) {
|
||||
Utils.toast(mContext, "系统异常,分享失败");
|
||||
@ -541,16 +528,7 @@ public class ShareUtils {
|
||||
if (ispopupWindow) {
|
||||
copyLink(shareUrl);
|
||||
} else {
|
||||
Intent data = new Intent(Intent.ACTION_SENDTO);
|
||||
data.setData(Uri.parse("mailto:"));
|
||||
data.putExtra(Intent.EXTRA_SUBJECT, "快来试试光环助手");
|
||||
data.putExtra(Intent.EXTRA_TEXT, "我用光环助手一段时间了,在里面可以下载各种热门卡牌手游的加速版,绿色安全,超级省心,做日常效率提高3-5倍!\n" +
|
||||
"\n" +
|
||||
"不用肝的感觉真好,快来试试。\n" +
|
||||
"\n" +
|
||||
"光环助手官网地址:\n" +
|
||||
"\n" +
|
||||
"http://www.ghzhushou.com/link?source=appshare333");
|
||||
Intent data = IntentUtils.getEmailToGHIntent();
|
||||
mContext.startActivity(data);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user