Skip to content

Commit

Permalink
Fixed #1157 - Dialog crash
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <[email protected]>
  • Loading branch information
amrhossamdev authored and aaronbrethorst committed Mar 11, 2024
1 parent 297a41a commit 5494088
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,12 @@ public void onClick(DialogInterface dialog, int which) {
TextView title = (TextView) dialog.findViewById(R.id.alert_title);
title.setText(args.getString(TITLE));

TextView desc = (TextView) dialog.findViewById(R.id.alert_description);
TextView descTxtView = (TextView) dialog.findViewById(R.id.alert_description);

if (desc != null) {
desc.setText(Html.fromHtml(args.getString(DESCRIPTION)));
String desc = args.getString(DESCRIPTION);

if (descTxtView != null &&!TextUtils.isEmpty(desc)) {
descTxtView.setText(Html.fromHtml(desc));
}
TextView urlView = (TextView) dialog.findViewById(R.id.alert_url);

Expand Down

0 comments on commit 5494088

Please sign in to comment.