Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. Index: client/ContactMessageList.java
  2. ===================================================================
  3. --- client/ContactMessageList.java (revision 243)
  4. +++ client/ContactMessageList.java (working copy)
  5. @@ -307,7 +307,7 @@
  6. showMsgEdit(ClipBoard.getClipBoard());
  7. //#endif
  8. } else if (c == Commands.cmdResume) {
  9. - showMsgEdit(contact.msgSuspended);
  10. + newMessage();
  11. } else if (c == Commands.cmdQuote) {
  12. quoteMessage();
  13. } else if (c == Commands.cmdReply) {
  14. @@ -441,7 +441,7 @@
  15. if (msg == null ||
  16. msg.messageType == Msg.MESSAGE_TYPE_OUT ||
  17. msg.messageType == Msg.MESSAGE_TYPE_SUBJ) {
  18. - showMsgEdit(null);
  19. + newMessage();
  20. } else {
  21. String text;
  22. //#ifdef JUICK.COM
  23. @@ -457,7 +457,7 @@
  24. final String msgText = text;
  25. AlertBox box = new AlertBox(msg.from, SR.get(SR.MS_MSGBUFFER_NOT_EMPTY), AlertBox.BUTTONS_YESNO) {
  26. public void yes() { showMsgEdit(msgText); }
  27. - public void no() { keyGreen(); }
  28. + public void no() { newMessage(); }
  29. };
  30. box.show();
  31. return;
  32. @@ -490,7 +490,7 @@
  33. if (Config.createMessageByFive) {
  34. super.eventOk();
  35. } else {
  36. - showMsgEdit(contact.msgSuspended);
  37. + newMessage();
  38. }
  39. }
  40. }
  41. @@ -604,7 +604,9 @@
  42. }
  43.  
  44. public void newMessage() {
  45. - showMsgEdit(null);
  46. + if (midlet.BombusQD.sd.roster.isLoggedIn()) {
  47. + showMsgEdit(contact.msgSuspended);
  48. + }
  49. }
  50.  
  51. private void answer() {
  52. @@ -633,7 +635,7 @@
  53. }
  54.  
  55. public void touchMiddlePressed(){
  56. - showMsgEdit(contact.msgSuspended);
  57. + newMessage();
  58. }
  59.  
  60. public void touchLeftPressed(){
  61. Index: ui/controls/form/ImageItem.java
  62. ===================================================================
  63. --- ui/controls/form/ImageItem.java (revision 243)
  64. +++ ui/controls/form/ImageItem.java (working copy)
  65. @@ -103,7 +103,8 @@
  66. int newHeight=(img.getHeight() * (screenWidth * 100 / img.getWidth()))/100;
  67. this.img=scale(img, screenWidth, newHeight);
  68. }
  69. - } catch (Exception e) {
  70. + } catch(OutOfMemoryError eom){
  71. + } catch (Exception e) {
  72. }
  73. return true;
  74. //break;
  75. Index: vcard/VCardView.java
  76. ===================================================================
  77. --- vcard/VCardView.java (revision 243)
  78. +++ vcard/VCardView.java (working copy)
  79. @@ -199,6 +199,7 @@
  80. //#endif
  81. //photoImg = null;
  82. }
  83. + } catch (OutOfMemoryError eom) {
  84. } catch (Exception e) {
  85. addControl(badFormat);
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement