|
|
@@ -4,6 +4,7 @@ import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
|
+import android.support.v7.app.AlertDialog;
|
|
|
import android.text.Html;
|
|
|
import android.text.TextUtils;
|
|
|
import android.util.Log;
|
|
|
@@ -333,6 +334,14 @@ public class MsgsSecondCommonActivity extends BaseActivity implements View.OnCli
|
|
|
msgModel.get(mPosition).setReaded(true);
|
|
|
MessageDao.getInstance().upStatus(msg_id, true);//点击保存本地为已读状态操作
|
|
|
msgAdapter.notifyDataSetChanged();
|
|
|
+
|
|
|
+ if (Html.fromHtml(msgModel.get(mPosition).getSubTitle()).length() > 20){
|
|
|
+ new AlertDialog.Builder(mContext)
|
|
|
+ .setTitle(msg_title)
|
|
|
+ .setMessage(Html.fromHtml(msgModel.get(mPosition).getSubTitle()))
|
|
|
+ .setPositiveButton("确定",null).show();
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|