|
|
|
|
@ -46,10 +46,6 @@ public class PushActivity extends BaseActivity { |
|
|
|
|
if (manager.hasPrimaryClip() && manager.getPrimaryClip() != null && manager.getPrimaryClip().getItemCount() > 0) { |
|
|
|
|
ClipData.Item addedText = manager.getPrimaryClip().getItemAt(0); |
|
|
|
|
String clipText = addedText.getText().toString().trim(); |
|
|
|
|
Matcher m = Pattern.compile("(https?://[A-Za-z0-9:_@$#\\+\\|\\/\\.\\?\\=\\&\\%\\-]+)").matcher(clipText); |
|
|
|
|
if (m.find()) { |
|
|
|
|
clipText = m.group(1); |
|
|
|
|
} |
|
|
|
|
Intent newIntent = new Intent(mContext, DetailActivity.class); |
|
|
|
|
newIntent.putExtra("id", clipText); |
|
|
|
|
newIntent.putExtra("sourceKey", "push_agent"); |
|
|
|
|
|