Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-9593] 3_0_X Use data scheme when setting html text #3805

Merged
merged 2 commits into from
Jan 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private String escapeContent(String content)

public void setHtml(String html)
{
setHtmlInternal(html, TiC.URL_ANDROID_ASSET_RESOURCES, "text/html");
setHtmlInternal(html, "data://", "text/html");
}

public void setHtml(String html, KrollDict d)
Expand All @@ -390,7 +390,7 @@ public void setHtml(String html, KrollDict d)
return;
}

String baseUrl = TiC.URL_ANDROID_ASSET_RESOURCES;
String baseUrl = "data://";
String mimeType = "text/html";
if (d.containsKey(TiC.PROPERTY_BASE_URL_WEBVIEW)) {
baseUrl = TiConvert.toString(d.get(TiC.PROPERTY_BASE_URL_WEBVIEW));
Expand Down