1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 09:52:16 -05:00

. Replaced 'Reply All' with 'Delete' button in message view

This commit is contained in:
Bao-Long Nguyen-Trong 2008-12-21 17:44:18 +00:00
parent 7f81a1ed5d
commit f5c4982c1d
2 changed files with 15 additions and 15 deletions

View File

@ -55,8 +55,8 @@
android:layout_width="0dip"
android:layout_weight="1" />
<Button
android:id="@+id/reply_all"
android:text="@string/reply_all_action"
android:id="@+id/delete"
android:text="@string/delete_action"
android:layout_height="wrap_content"
android:layout_width="0dip"
android:layout_weight="1" />

View File

@ -100,8 +100,8 @@ public class MessageView extends Activity
private MessageViewHandler mHandler = new MessageViewHandler();
public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_DEL: { onDelete(); return true;}
@ -112,9 +112,9 @@ public class MessageView extends Activity
case KeyEvent.KEYCODE_J: { onPrevious(); return true; }
case KeyEvent.KEYCODE_K: { onNext(); return true; }
case KeyEvent.KEYCODE_Z: { if (event.isShiftPressed()) {
mMessageContentView.zoomIn();
mMessageContentView.zoomIn();
} else {
mMessageContentView.zoomOut();
mMessageContentView.zoomOut();
}
return true; }
@ -122,7 +122,7 @@ public class MessageView extends Activity
}
return super.onKeyDown(keyCode, event);
}
class MessageViewHandler extends Handler {
@ -248,9 +248,9 @@ public class MessageView extends Activity
msg.arg1 = show ? 1 : 0;
sendMessage(msg);
}
}
class Attachment {
@ -302,7 +302,7 @@ public class MessageView extends Activity
mAttachmentIcon.setVisibility(View.GONE);
findViewById(R.id.reply).setOnClickListener(this);
findViewById(R.id.reply_all).setOnClickListener(this);
findViewById(R.id.delete).setOnClickListener(this);
findViewById(R.id.forward).setOnClickListener(this);
findViewById(R.id.show_pictures).setOnClickListener(this);
@ -518,8 +518,8 @@ public class MessageView extends Activity
case R.id.reply:
onReply();
break;
case R.id.reply_all:
onReplyAll();
case R.id.delete:
onDelete();
break;
case R.id.forward:
onForward();
@ -756,7 +756,7 @@ public class MessageView extends Activity
}
}
m.appendTail(sb);
/*
* Convert plain text to HTML by replacing
* \r?\n with <br> and adding a html/body wrapper.
@ -766,7 +766,7 @@ public class MessageView extends Activity
text = "<html><body>" + text + "</body></html>";
}