1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-17 13:22:16 -05:00

Fix display of icon in About box on Android 2.1 and earlier

This commit is contained in:
Jesse Vincent 2011-01-30 15:11:16 +00:00
parent bec094326a
commit 65dc3c7d1b
2 changed files with 1 additions and 1 deletions

BIN
assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -833,7 +833,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
WebView wv = new WebView(this); WebView wv = new WebView(this);
StringBuilder html = new StringBuilder() StringBuilder html = new StringBuilder()
.append("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />") .append("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />")
.append("<img src=\"icon.png\" alt=\"").append(appName).append("\"/>") .append("<img src=\"file:///android_asset/icon.png\" alt=\"").append(appName).append("\"/>")
.append("<h1>") .append("<h1>")
.append(String.format(getString(R.string.about_title_fmt), .append(String.format(getString(R.string.about_title_fmt),
"<a href=\"" + getString(R.string.app_webpage_url)) + "\">") "<a href=\"" + getString(R.string.app_webpage_url)) + "\">")