|
|
@@ -22,6 +22,7 @@ import com.tencent.qcloud.tuikit.tuichat.bean.message.CustomOrderMessageBean;
|
|
|
import com.tencent.qcloud.tuikit.tuichat.util.TUIChatLog;
|
|
|
|
|
|
public class CustomOrderMessageHolder extends MessageContentHolder {
|
|
|
+
|
|
|
private ImageView imageView;
|
|
|
private TextView titleView;
|
|
|
private TextView contentView;
|
|
|
@@ -75,16 +76,13 @@ public class CustomOrderMessageHolder extends MessageContentHolder {
|
|
|
priceView.setText(price);
|
|
|
msgContentFrame.setClickable(true);
|
|
|
String finalLink = link;
|
|
|
- msgContentFrame.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View v) {
|
|
|
- Intent intent = new Intent();
|
|
|
- intent.setAction("android.intent.action.VIEW");
|
|
|
- Uri contentUrl = Uri.parse(finalLink);
|
|
|
- intent.setData(contentUrl);
|
|
|
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
- TUIChatService.getAppContext().startActivity(intent);
|
|
|
- }
|
|
|
+ msgContentFrame.setOnClickListener(v -> {
|
|
|
+ Intent intent = new Intent();
|
|
|
+ intent.setAction("android.intent.action.VIEW");
|
|
|
+ Uri contentUrl = Uri.parse(finalLink);
|
|
|
+ intent.setData(contentUrl);
|
|
|
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
+ TUIChatService.getAppContext().startActivity(intent);
|
|
|
});
|
|
|
}
|
|
|
}
|