|
|
@@ -5,6 +5,7 @@ import android.app.Dialog;
|
|
|
import android.content.Context;
|
|
|
import android.content.DialogInterface;
|
|
|
import android.graphics.drawable.ColorDrawable;
|
|
|
+import android.text.Html;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.widget.LinearLayout;
|
|
|
@@ -181,7 +182,10 @@ public class CustomDialog extends Dialog {
|
|
|
}
|
|
|
// set the content message
|
|
|
if (message != null) {
|
|
|
- ((TextView) contentView.findViewById(R.id.dialog_message)).setText(message);
|
|
|
+ if (message.startsWith("<html>"))
|
|
|
+ ((TextView) contentView.findViewById(R.id.dialog_message)).setText(Html.fromHtml(message));
|
|
|
+ else
|
|
|
+ ((TextView) contentView.findViewById(R.id.dialog_message)).setText(message);
|
|
|
}
|
|
|
// else if (contentView != null) {
|
|
|
// // if no message set
|