Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54e31dcf authored by jruesga's avatar jruesga
Browse files

Allow dialogs with no icon

parent 0a50801f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -164,7 +164,11 @@ public final class DialogHelper {
                (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View lyTitle = li.inflate(R.layout.dialog_title, null);
        ImageView vIcon = (ImageView)lyTitle.findViewById(R.id.dialog_title_icon);
        if (icon != 0) {
            vIcon.setBackgroundResource(icon);
        } else {
            vIcon.setVisibility(View.GONE);
        }
        TextView vText = (TextView)lyTitle.findViewById(R.id.dialog_title_text);
        vText.setText(title);
        return lyTitle;