This commit is contained in:
Jesse Vincent 2010-08-18 02:48:55 +00:00
parent de142b7faa
commit ff5024eaec
15 changed files with 145 additions and 106 deletions

View File

@ -313,7 +313,7 @@ public class Account implements BaseAccount
try try
{ {
mShowPictures = ShowPictures.valueOf(prefs.getString(mUuid + ".showPicturesEnum", mShowPictures = ShowPictures.valueOf(prefs.getString(mUuid + ".showPicturesEnum",
ShowPictures.NEVER.name())); ShowPictures.NEVER.name()));
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -224,10 +224,12 @@ public class ChooseFolder extends K9ListActivity
} }
} }
private void setDisplayMode(FolderMode aMode) { private void setDisplayMode(FolderMode aMode)
{
mMode = aMode; mMode = aMode;
// invalidate the current filter as it is working on an inval // invalidate the current filter as it is working on an inval
if (myFilter != null) { if (myFilter != null)
{
myFilter.invalidate(); myFilter.invalidate();
} }
//re-populate the list //re-populate the list

View File

@ -1614,19 +1614,19 @@ public class FolderList extends K9ListActivity
SearchSpecification searchSpec = new SearchSpecification() SearchSpecification searchSpec = new SearchSpecification()
{ {
//interface has no override @Override //interface has no override @Override
public String[] getAccountUuids() public String[] getAccountUuids()
{ {
return new String[] { account.getUuid() }; return new String[] { account.getUuid() };
} }
//interface has no override @Override //interface has no override @Override
public Flag[] getForbiddenFlags() public Flag[] getForbiddenFlags()
{ {
return UNREAD_FLAG_ARRAY; return UNREAD_FLAG_ARRAY;
} }
//interface has no override @Override //interface has no override @Override
public String getQuery() public String getQuery()
{ {
return ""; return "";

View File

@ -136,7 +136,8 @@ public class FolderListFilter<T> extends Filter
mFolders.notifyDataSetChanged(); mFolders.notifyDataSetChanged();
} }
public void invalidate() { public void invalidate()
{
mOriginalValues = null; mOriginalValues = null;
} }
} }

View File

@ -2322,7 +2322,7 @@ public class MessageList
/** /**
* Associate model data to view object. * Associate model data to view object.
* *
* @param position * @param position
* The position of the item within the adapter's data set of * The position of the item within the adapter's data set of
* the item whose view we want. * the item whose view we want.
@ -2335,7 +2335,7 @@ public class MessageList
* Never <code>null</code>. * Never <code>null</code>.
*/ */
private void bindView(final int position, final View view, final MessageViewHolder holder, private void bindView(final int position, final View view, final MessageViewHolder holder,
final MessageInfoHolder message) final MessageInfoHolder message)
{ {
holder.subject.setTypeface(null, message.read ? Typeface.NORMAL : Typeface.BOLD); holder.subject.setTypeface(null, message.read ? Typeface.NORMAL : Typeface.BOLD);

View File

@ -1964,7 +1964,7 @@ public class MessageView extends K9Activity implements OnClickListener
// Inline parts with a content-id are almost certainly components of an HTML message // Inline parts with a content-id are almost certainly components of an HTML message
// not attachments. Don't show attachment download buttons for them. // not attachments. Don't show attachment download buttons for them.
if ( contentDisposition != null && if (contentDisposition != null &&
MimeUtility.getHeaderParameter(contentDisposition, null).matches("^(?i:inline)") MimeUtility.getHeaderParameter(contentDisposition, null).matches("^(?i:inline)")
&& part.getHeader("Content-ID") != null) && part.getHeader("Content-ID") != null)
{ {
@ -2224,7 +2224,7 @@ public class MessageView extends K9Activity implements OnClickListener
{ {
if ((account.getShowPictures() == Account.ShowPictures.ALWAYS) || if ((account.getShowPictures() == Account.ShowPictures.ALWAYS) ||
((account.getShowPictures() == Account.ShowPictures.ONLY_FROM_CONTACTS) && ((account.getShowPictures() == Account.ShowPictures.ONLY_FROM_CONTACTS) &&
mContacts.isInContacts(message.getFrom()[0].getAddress()))) mContacts.isInContacts(message.getFrom()[0].getAddress())))
{ {
onShowPictures(); onShowPictures();
} }
@ -2552,7 +2552,9 @@ public class MessageView extends K9Activity implements OnClickListener
} }
mCryptoSignatureLayout.setVisibility(View.VISIBLE); mCryptoSignatureLayout.setVisibility(View.VISIBLE);
mDecryptLayout.setVisibility(View.VISIBLE); mDecryptLayout.setVisibility(View.VISIBLE);
} else { }
else
{
mCryptoSignatureLayout.setVisibility(View.INVISIBLE); mCryptoSignatureLayout.setVisibility(View.INVISIBLE);
} }

View File

@ -398,7 +398,7 @@ public class MessagingController implements Runnable
*/ */
public void listFolders(final Account account, final boolean refreshRemote, final MessagingListener listener) public void listFolders(final Account account, final boolean refreshRemote, final MessagingListener listener)
{ {
new Thread (new Runnable() new Thread(new Runnable()
{ {
public void run() public void run()
{ {

View File

@ -31,11 +31,12 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
* {@link com.fsck.k9.EmailAddressAdapter} or more specificly by * {@link com.fsck.k9.EmailAddressAdapter} or more specificly by
* {@link android.widget.ResourceCursorAdapter}. * {@link android.widget.ResourceCursorAdapter}.
*/ */
private static final String PROJECTION[] = { private static final String PROJECTION[] =
Contacts.People.ContactMethods._ID, {
Contacts.People.ContactMethods.NAME, Contacts.People.ContactMethods._ID,
Contacts.People.ContactMethods.DATA Contacts.People.ContactMethods.NAME,
}; Contacts.People.ContactMethods.DATA
};
/** /**
* Index of the name field in the projection. This must match the order in * Index of the name field in the projection. This must match the order in
@ -65,7 +66,7 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
// Pass along full E-mail string for possible create dialog // Pass along full E-mail string for possible create dialog
contactIntent.putExtra(Contacts.Intents.EXTRA_CREATE_DESCRIPTION, contactIntent.putExtra(Contacts.Intents.EXTRA_CREATE_DESCRIPTION,
email.toString()); email.toString());
// Only provide personal name hint if we have one // Only provide personal name hint if we have one
final String senderPersonal = email.getPersonal(); final String senderPersonal = email.getPersonal();
@ -82,11 +83,11 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
{ {
String name = null; String name = null;
final Cursor c = mContentResolver.query( final Cursor c = mContentResolver.query(
Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"), Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"),
PROJECTION, PROJECTION,
null, null,
null, null,
null); null);
if (c != null) if (c != null)
{ {
@ -110,15 +111,15 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
final String[] args = new String[] {emailAddress}; final String[] args = new String[] {emailAddress};
final Cursor c = mContentResolver.query( final Cursor c = mContentResolver.query(
Contacts.ContactMethods.CONTENT_EMAIL_URI, Contacts.ContactMethods.CONTENT_EMAIL_URI,
PROJECTION, PROJECTION,
where, where,
args, args,
null); null);
if (c != null) if (c != null)
{ {
if (c.getCount() > 0) if (c.getCount() > 0)
{ {
result = true; result = true;
} }
@ -141,20 +142,20 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts
else else
{ {
where = "(" + where = "(" +
Contacts.People.NAME + " LIKE ?" + Contacts.People.NAME + " LIKE ?" +
") OR (" + ") OR (" +
Contacts.ContactMethods.DATA + " LIKE ?" + Contacts.ContactMethods.DATA + " LIKE ?" +
")"; ")";
final String filter = constraint.toString() + "%"; final String filter = constraint.toString() + "%";
args = new String[] {filter, filter}; args = new String[] {filter, filter};
} }
final Cursor c = mContentResolver.query( final Cursor c = mContentResolver.query(
Contacts.ContactMethods.CONTENT_EMAIL_URI, Contacts.ContactMethods.CONTENT_EMAIL_URI,
PROJECTION, PROJECTION,
where, where,
args, args,
SORT_ORDER); SORT_ORDER);
if (c != null) if (c != null)
{ {

View File

@ -34,11 +34,12 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts
* {@link com.fsck.k9.EmailAddressAdapter} or more specificly by * {@link com.fsck.k9.EmailAddressAdapter} or more specificly by
* {@link android.widget.ResourceCursorAdapter}. * {@link android.widget.ResourceCursorAdapter}.
*/ */
private static final String PROJECTION[] = { private static final String PROJECTION[] =
Contacts._ID, {
Contacts.DISPLAY_NAME, Contacts._ID,
Email.DATA Contacts.DISPLAY_NAME,
}; Email.DATA
};
/** /**
* Index of the name field in the projection. This must match the order in * Index of the name field in the projection. This must match the order in
@ -68,7 +69,7 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts
// Pass along full E-mail string for possible create dialog // Pass along full E-mail string for possible create dialog
contactIntent.putExtra(Intents.EXTRA_CREATE_DESCRIPTION, contactIntent.putExtra(Intents.EXTRA_CREATE_DESCRIPTION,
email.toString()); email.toString());
// Only provide personal name hint if we have one // Only provide personal name hint if we have one
final String senderPersonal = email.getPersonal(); final String senderPersonal = email.getPersonal();
@ -110,7 +111,7 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts
if (c != null) if (c != null)
{ {
if (c.getCount() > 0) if (c.getCount() > 0)
{ {
result = true; result = true;
} }
@ -126,11 +127,11 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts
final String filter = (constraint == null) ? "" : constraint.toString(); final String filter = (constraint == null) ? "" : constraint.toString();
final Uri uri = Uri.withAppendedPath(Email.CONTENT_FILTER_URI, Uri.encode(filter)); final Uri uri = Uri.withAppendedPath(Email.CONTENT_FILTER_URI, Uri.encode(filter));
final Cursor c = mContentResolver.query( final Cursor c = mContentResolver.query(
uri, uri,
PROJECTION, PROJECTION,
null, null,
null, null,
SORT_ORDER); SORT_ORDER);
if (c != null) if (c != null)
{ {

View File

@ -597,10 +597,10 @@ public class MimeUtility
private static String fixupCharset(String charset) private static String fixupCharset(String charset)
{ {
charset = charset.toLowerCase(); charset = charset.toLowerCase();
if (charset.equals("cp932")) if (charset.equals("cp932"))
return "shift-jis"; return "shift-jis";
else if (charset.equals("koi8-u")) else if (charset.equals("koi8-u"))
return "koi8-r"; return "koi8-r";
return charset; return charset;

View File

@ -1212,14 +1212,14 @@ public class ImapStore extends Store
try try
{ {
mConnection.sendCommand(String.format("UID FETCH %s (%s)", mConnection.sendCommand(String.format("UID FETCH %s (%s)",
Utility.combine(uidWindow.toArray(new String[uidWindow.size()]), ','), Utility.combine(uidWindow.toArray(new String[uidWindow.size()]), ','),
Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ') Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ')
), false); ), false);
ImapResponse response; ImapResponse response;
int messageNumber = 0; int messageNumber = 0;
ImapResponseParser.IImapResponseCallback callback = null; ImapResponseParser.IImapResponseCallback callback = null;
if (fp.contains(FetchProfile.Item.BODY) || fp.contains(FetchProfile.Item.BODY_SANE) ) if (fp.contains(FetchProfile.Item.BODY) || fp.contains(FetchProfile.Item.BODY_SANE))
{ {
callback = new FetchBodyCallback(messageMap); callback = new FetchBodyCallback(messageMap);
} }

View File

@ -1416,8 +1416,8 @@ public class LocalStore extends Store implements Serializable
"mime_type", "mime_type",
"store_data", "store_data",
"content_uri", "content_uri",
"content_id", "content_id",
"content_disposition" "content_disposition"
}, },
"message_id = ?", "message_id = ?",
new String[] { Long.toString(localMessage.mId) }, new String[] { Long.toString(localMessage.mId) },
@ -1437,7 +1437,7 @@ public class LocalStore extends Store implements Serializable
String contentDisposition = cursor.getString(7); String contentDisposition = cursor.getString(7);
Body body = null; Body body = null;
if (contentDisposition == null ) if (contentDisposition == null)
{ {
contentDisposition = "attachment"; contentDisposition = "attachment";
} }
@ -2475,7 +2475,7 @@ public class LocalStore extends Store implements Serializable
{ {
switch (c) switch (c)
{ {
// These emoji codepoints are generated by tools/make_emoji in the K-9 source tree // These emoji codepoints are generated by tools/make_emoji in the K-9 source tree
case 0xE6F9: //docomo kissmark case 0xE6F9: //docomo kissmark
buff.append("<img src=\"file:///android_asset/emoticons/kissmark.gif\" alt=\"kissmark\" />"); buff.append("<img src=\"file:///android_asset/emoticons/kissmark.gif\" alt=\"kissmark\" />");
@ -3233,9 +3233,9 @@ public class LocalStore extends Store implements Serializable
case 0xE6D3: //docomo mail case 0xE6D3: //docomo mail
buff.append("<img src=\"file:///android_asset/emoticons/mail.gif\" alt=\"mail\" />"); buff.append("<img src=\"file:///android_asset/emoticons/mail.gif\" alt=\"mail\" />");
break; break;
// These emoji codepoints are generated by tools/make_emoji in the K-9 source tree // These emoji codepoints are generated by tools/make_emoji in the K-9 source tree
// The spaces between the < and the img are a hack to avoid triggering // The spaces between the < and the img are a hack to avoid triggering
// K-9's 'load images' button // K-9's 'load images' button
case 0xE223: //softbank eight case 0xE223: //softbank eight
buff.append("<img src=\"file:///android_asset/emoticons/eight.gif\" alt=\"eight\" />"); buff.append("<img src=\"file:///android_asset/emoticons/eight.gif\" alt=\"eight\" />");
@ -3804,9 +3804,9 @@ public class LocalStore extends Store implements Serializable
case 0xE313: //softbank hairsalon case 0xE313: //softbank hairsalon
buff.append("<img src=\"file:///android_asset/emoticons/hairsalon.gif\" alt=\"hairsalon\" />"); buff.append("<img src=\"file:///android_asset/emoticons/hairsalon.gif\" alt=\"hairsalon\" />");
break; break;
// These emoji codepoints are generated by tools/make_emoji in the K-9 source tree // These emoji codepoints are generated by tools/make_emoji in the K-9 source tree
// The spaces between the < and the img are a hack to avoid triggering // The spaces between the < and the img are a hack to avoid triggering
// K-9's 'load images' button // K-9's 'load images' button
case 0xE488: //kddi sun case 0xE488: //kddi sun
buff.append("<img src=\"file:///android_asset/emoticons/sun.gif\" alt=\"sun\" />"); buff.append("<img src=\"file:///android_asset/emoticons/sun.gif\" alt=\"sun\" />");
@ -3886,9 +3886,9 @@ public class LocalStore extends Store implements Serializable
case 0xE4A5: //kddi toilet case 0xE4A5: //kddi toilet
buff.append("<img src=\"file:///android_asset/emoticons/toilet.gif\" alt=\"toilet\" />"); buff.append("<img src=\"file:///android_asset/emoticons/toilet.gif\" alt=\"toilet\" />");
break; break;
// Skipping kddi codepoint E523 two // Skipping kddi codepoint E523 two
// It conflicts with an earlier definition from another carrier: // It conflicts with an earlier definition from another carrier:
// softbank chick // softbank chick
case 0xE496: //kddi scorpius case 0xE496: //kddi scorpius
buff.append("<img src=\"file:///android_asset/emoticons/scorpius.gif\" alt=\"scorpius\" />"); buff.append("<img src=\"file:///android_asset/emoticons/scorpius.gif\" alt=\"scorpius\" />");
@ -3968,9 +3968,9 @@ public class LocalStore extends Store implements Serializable
case 0xE514: //kddi ring case 0xE514: //kddi ring
buff.append("<img src=\"file:///android_asset/emoticons/ring.gif\" alt=\"ring\" />"); buff.append("<img src=\"file:///android_asset/emoticons/ring.gif\" alt=\"ring\" />");
break; break;
// Skipping kddi codepoint E502 tv // Skipping kddi codepoint E502 tv
// It conflicts with an earlier definition from another carrier: // It conflicts with an earlier definition from another carrier:
// softbank art // softbank art
case 0xE4AC: //kddi restaurant case 0xE4AC: //kddi restaurant
buff.append("<img src=\"file:///android_asset/emoticons/restaurant.gif\" alt=\"restaurant\" />"); buff.append("<img src=\"file:///android_asset/emoticons/restaurant.gif\" alt=\"restaurant\" />");
@ -4161,9 +4161,9 @@ public class LocalStore extends Store implements Serializable
case 0xE520: //kddi faxto case 0xE520: //kddi faxto
buff.append("<img src=\"file:///android_asset/emoticons/faxto.gif\" alt=\"faxto\" />"); buff.append("<img src=\"file:///android_asset/emoticons/faxto.gif\" alt=\"faxto\" />");
break; break;
// Skipping kddi codepoint E503 karaoke // Skipping kddi codepoint E503 karaoke
// It conflicts with an earlier definition from another carrier: // It conflicts with an earlier definition from another carrier:
// softbank drama // softbank drama
case 0xE4D6: //kddi fastfood case 0xE4D6: //kddi fastfood
buff.append("<img src=\"file:///android_asset/emoticons/fastfood.gif\" alt=\"fastfood\" />"); buff.append("<img src=\"file:///android_asset/emoticons/fastfood.gif\" alt=\"fastfood\" />");

View File

@ -412,7 +412,8 @@ public class MailService extends CoreService
} }
else else
{ {
if (K9.DEBUG) { if (K9.DEBUG)
{
Log.i(K9.LOG_TAG, "Not scheduling pushers: connectivity? "+hasConnectivity + " -- doBackground? "+doBackground); Log.i(K9.LOG_TAG, "Not scheduling pushers: connectivity? "+hasConnectivity + " -- doBackground? "+doBackground);
} }

View File

@ -24,8 +24,10 @@ import android.text.Html;
import android.text.Spanned; import android.text.Spanned;
import android.widget.ArrayAdapter; import android.widget.ArrayAdapter;
public class AccessibleEmailContentActivity extends ListActivity { public class AccessibleEmailContentActivity extends ListActivity
String[] listItems = { {
String[] listItems =
{
"" ""
}; };
@ -35,7 +37,8 @@ public class AccessibleEmailContentActivity extends ListActivity {
/** Called when the activity is first created. */ /** Called when the activity is first created. */
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
htmlSource = getIntent().getStringExtra("content"); htmlSource = getIntent().getStringExtra("content");
@ -43,8 +46,10 @@ public class AccessibleEmailContentActivity extends ListActivity {
String[] rawListItems = parsedHtml.toString().split("\n"); String[] rawListItems = parsedHtml.toString().split("\n");
cleanedList = new ArrayList<String>(); cleanedList = new ArrayList<String>();
for (int i = 0; i < rawListItems.length; i++) { for (int i = 0; i < rawListItems.length; i++)
if (rawListItems[i].trim().length() > 0) { {
if (rawListItems[i].trim().length() > 0)
{
addToCleanedList(rawListItems[i]); addToCleanedList(rawListItems[i]);
} }
} }
@ -55,21 +60,30 @@ public class AccessibleEmailContentActivity extends ListActivity {
setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, listItems)); setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, listItems));
} }
private void addToCleanedList(String line) { private void addToCleanedList(String line)
if (line.length() < 80) { {
if (line.length() < 80)
{
cleanedList.add(line); cleanedList.add(line);
} else { }
while (line.length() > 80) { else
{
while (line.length() > 80)
{
int cutPoint = line.indexOf(" ", 80); int cutPoint = line.indexOf(" ", 80);
if ((cutPoint > 0) && (cutPoint < line.length())) { if ((cutPoint > 0) && (cutPoint < line.length()))
{
cleanedList.add(line.substring(0, cutPoint)); cleanedList.add(line.substring(0, cutPoint));
line = line.substring(cutPoint).trim(); line = line.substring(cutPoint).trim();
} else { }
else
{
cleanedList.add(line); cleanedList.add(line);
line = ""; line = "";
} }
} }
if (line.length() > 0) { if (line.length() > 0)
{
cleanedList.add(line); cleanedList.add(line);
} }
} }

View File

@ -26,84 +26,101 @@ import android.webkit.WebSettings;
import android.webkit.WebView; import android.webkit.WebView;
import android.widget.TextView; import android.widget.TextView;
public class AccessibleWebView extends TextView { public class AccessibleWebView extends TextView
{
private Activity parent; private Activity parent;
private String htmlSource; private String htmlSource;
private WebView dummyWebView; private WebView dummyWebView;
public AccessibleWebView(Context context) { public AccessibleWebView(Context context)
{
super(context); super(context);
parent = (Activity) context; parent = (Activity) context;
dummyWebView = new WebView(context); dummyWebView = new WebView(context);
setFocusable(true); setFocusable(true);
setFocusableInTouchMode(true); setFocusableInTouchMode(true);
setOnClickListener(new OnClickListener() { setOnClickListener(new OnClickListener()
{
@Override @Override
public void onClick(View arg0) { public void onClick(View arg0)
{
diveIn(); diveIn();
} }
}); });
} }
public AccessibleWebView(Context context, AttributeSet attributes) { public AccessibleWebView(Context context, AttributeSet attributes)
{
super(context, attributes); super(context, attributes);
parent = (Activity) context; parent = (Activity) context;
dummyWebView = new WebView(context); dummyWebView = new WebView(context);
setFocusable(true); setFocusable(true);
setFocusableInTouchMode(true); setFocusableInTouchMode(true);
setOnClickListener(new OnClickListener() { setOnClickListener(new OnClickListener()
{
@Override @Override
public void onClick(View arg0) { public void onClick(View arg0)
{
diveIn(); diveIn();
} }
}); });
} }
public void loadData(String data, String mimeType, String encoding) { public void loadData(String data, String mimeType, String encoding)
{
htmlSource = data; htmlSource = data;
this.setText(Html.fromHtml(htmlSource, null, null)); this.setText(Html.fromHtml(htmlSource, null, null));
} }
public WebSettings getSettings() { public WebSettings getSettings()
{
return dummyWebView.getSettings(); return dummyWebView.getSettings();
} }
public void setVerticalScrollbarOverlay(boolean booleanValue) { public void setVerticalScrollbarOverlay(boolean booleanValue)
{
// Do nothing here; dummy stub method to maintain compatibility with // Do nothing here; dummy stub method to maintain compatibility with
// standard WebView. // standard WebView.
} }
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding,
String historyUrl) { String historyUrl)
{
htmlSource = data; htmlSource = data;
this.setText(Html.fromHtml(htmlSource, null, null)); this.setText(Html.fromHtml(htmlSource, null, null));
} }
public void loadUrl(String url) { public void loadUrl(String url)
{
// Do nothing here; dummy stub method to maintain compatibility with // Do nothing here; dummy stub method to maintain compatibility with
// standard WebView. // standard WebView.
} }
public boolean zoomIn() { public boolean zoomIn()
if (getTextSize() < 100) { {
if (getTextSize() < 100)
{
setTextSize(getTextSize() + 5); setTextSize(getTextSize() + 5);
return true; return true;
} }
return false; return false;
} }
public boolean zoomOut() { public boolean zoomOut()
if (getTextSize() > 5) { {
if (getTextSize() > 5)
{
setTextSize(getTextSize() - 5); setTextSize(getTextSize() - 5);
return true; return true;
} }
return false; return false;
} }
private void diveIn() { private void diveIn()
{
Intent i = new Intent(); Intent i = new Intent();
i.setClass(parent, AccessibleEmailContentActivity.class); i.setClass(parent, AccessibleEmailContentActivity.class);
i.putExtra("content", htmlSource); i.putExtra("content", htmlSource);