|
|
@ -31,6 +31,7 @@ import android.content.res.Resources;
|
|
|
|
import android.database.Cursor;
|
|
|
|
import android.database.Cursor;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.provider.ContactsContract;
|
|
|
|
import android.provider.ContactsContract;
|
|
|
|
|
|
|
|
import android.text.Spanned;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.util.Patterns;
|
|
|
|
import android.util.Patterns;
|
|
|
|
|
|
|
|
|
|
|
@ -1572,7 +1573,8 @@ public class EntityRule {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
message.preview = AI.getSummaryText(context, message).toString();
|
|
|
|
Spanned summary = AI.getSummaryText(context, message);
|
|
|
|
|
|
|
|
message.preview = (summary == null ? null : summary.toString());
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
message.error = Log.formatThrowable(ex);
|
|
|
|
message.error = Log.formatThrowable(ex);
|
|
|
|
db.message().setMessageError(message.id, message.error);
|
|
|
|
db.message().setMessageError(message.id, message.error);
|
|
|
|