From fddb09885715daf744226dd7842b3830b117d3bc Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 17 May 2014 13:30:32 +0200 Subject: [PATCH 1/4] updated changelog for version 0.2.2 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 116cc3077..f24146ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ###Changelog +####Version 0.2.2 +* Ability to take photos directly +* Improved openPGP offline handling +* Various bug fixes +* Updated Translations + ####Version 0.2.1 * Various bug fixes * Updated Translations From 4c179376401d738e3df0152f285edf14c55ffe7d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 17 May 2014 19:19:06 +0200 Subject: [PATCH 2/4] receiving pgp images important bug fix --- src/eu/siacs/conversations/ui/ConversationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index 5336b7936..b0e9d79b4 100644 --- a/src/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -583,7 +583,7 @@ public class ConversationFragment extends Fragment { ConversationActivity activity = (ConversationActivity) getActivity(); if (this.conversation != null) { for (Message message : this.conversation.getMessages()) { - if (message.getEncryption() == Message.ENCRYPTION_PGP) { + if ((message.getEncryption() == Message.ENCRYPTION_PGP)&&((message.getStatus() == Message.STATUS_RECIEVED)||(message.getStatus() == Message.STATUS_SEND))) { decryptMessage(message); break; } From 27060e303ca8b56da2e3d1ac7a8e18c82b0915e3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 17 May 2014 19:20:31 +0200 Subject: [PATCH 3/4] made sending session more compliant --- src/eu/siacs/conversations/xmpp/XmppConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java index 3fc6385a0..a04105a8f 100644 --- a/src/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java @@ -21,7 +21,6 @@ import java.util.HashSet; import java.util.Hashtable; import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.Map.Entry; import javax.net.ssl.SSLContext; @@ -547,7 +546,8 @@ public class XmppConnection implements Runnable { Log.d(LOGTAG,account.getJid()+": sending deprecated session"); IqPacket startSession = new IqPacket(IqPacket.TYPE_SET); startSession.addChild("session","urn:ietf:params:xml:ns:xmpp-session"); //setContent("") - this.sendIqPacket(startSession, null); + startSession.setId(nextRandomId()); + this.sendPacket(startSession, null); } } } From 736e09fbb56fbdc4aca4e9bdc9875a5df60cb562 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 17 May 2014 19:21:16 +0200 Subject: [PATCH 4/4] added record audio button --- res/menu/attachment_choices.xml | 4 +++- res/values-de/strings.xml | 1 + res/values/strings.xml | 1 + src/eu/siacs/conversations/ui/ConversationActivity.java | 8 ++++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/res/menu/attachment_choices.xml b/res/menu/attachment_choices.xml index 84e777b62..7e3ebbea5 100644 --- a/res/menu/attachment_choices.xml +++ b/res/menu/attachment_choices.xml @@ -7,5 +7,7 @@ - + \ No newline at end of file diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index c3320b117..883768420 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -163,5 +163,6 @@ Löschen Vorübergehend abschalten Anschalten + Sprache aufzeichnen \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 040382f8e..9841aa60c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -163,5 +163,6 @@ Delete Temporarily disable Enable + Record voice \ No newline at end of file diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java index ac9328cad..59c47fcf0 100644 --- a/src/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/eu/siacs/conversations/ui/ConversationActivity.java @@ -66,11 +66,13 @@ public class ConversationActivity extends XmppActivity { public static final int REQUEST_DECRYPT_PGP = 0x76783; private static final int REQUEST_ATTACH_FILE_DIALOG = 0x48502; private static final int REQUEST_IMAGE_CAPTURE = 0x33788; + private static final int REQUEST_RECORD_AUDIO = 0x46189; private static final int REQUEST_SEND_PGP_IMAGE = 0x53883; public static final int REQUEST_ENCRYPT_MESSAGE = 0x378018; private static final int ATTACHMENT_CHOICE_CHOOSE_IMAGE = 0x92734; private static final int ATTACHMENT_CHOICE_TAKE_PHOTO = 0x84123; + private static final int ATTACHMENT_CHOICE_RECORD_VOICE = 0x75291; protected SlidingPaneLayout spl; @@ -352,6 +354,9 @@ public class ConversationActivity extends XmppActivity { attachFileIntent.setAction(Intent.ACTION_GET_CONTENT); Intent chooser = Intent.createChooser(attachFileIntent, getString(R.string.attach_file)); startActivityForResult(chooser, REQUEST_ATTACH_FILE_DIALOG); + } else if (attachmentChoice==ATTACHMENT_CHOICE_RECORD_VOICE) { + Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); + startActivityForResult(intent, REQUEST_RECORD_AUDIO); } } } @@ -452,6 +457,9 @@ public class ConversationActivity extends XmppActivity { case R.id.attach_take_picture: attachFile(ATTACHMENT_CHOICE_TAKE_PHOTO); break; + case R.id.attach_record_voice: + attachFile(ATTACHMENT_CHOICE_RECORD_VOICE); + break; } return false; }