fixed a small graphic glitch

This commit is contained in:
Daniel Gultsch 2014-02-28 03:22:05 +01:00
parent 9581dfcde4
commit 03d96266f8
2 changed files with 19 additions and 15 deletions

View File

@ -45,14 +45,16 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_above="@+id/textsend" android:layout_above="@+id/textsend"
android:layout_below="@+id/info_box"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_below="@+id/info_box"
android:background="#e5e5e5" android:background="#e5e5e5"
tools:listitem="@layout/message_sent"
android:divider="@null" android:divider="@null"
android:dividerHeight="0dp" android:dividerHeight="0dp"
android:transcriptMode="alwaysScroll" android:listSelector="@android:color/transparent"
android:listSelector="@android:color/transparent"> android:transcriptMode="alwaysScroll"
tools:listitem="@layout/message_sent"
android:stackFromBottom="true">
</ListView> </ListView>
<LinearLayout <LinearLayout
android:id="@+id/info_box" android:id="@+id/info_box"

View File

@ -210,16 +210,18 @@ public class XmppConnectionService extends Service {
} else if (show.getContent().equals("dnd")) { } else if (show.getContent().equals("dnd")) {
contact.updatePresence(fromParts[1], Presences.DND); contact.updatePresence(fromParts[1], Presences.DND);
} }
Element x = packet.findChild("x"); PgpEngine pgp = getPgpEngine();
if ((x != null) if (pgp!=null) {
&& (x.getAttribute("xmlns").equals("jabber:x:signed"))) { Element x = packet.findChild("x");
try { if ((x != null)
Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from")); && (x.getAttribute("xmlns").equals("jabber:x:signed"))) {
contact.setPgpKeyId(getPgpEngine().fetchKeyId(packet.findChild("status") try {
.getContent(), x.getContent())); Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from"));
databaseBackend.updateContact(contact); contact.setPgpKeyId(pgp.fetchKeyId(packet.findChild("status")
} catch (OpenPgpException e) { .getContent(), x.getContent()));
Log.d(LOGTAG,"faulty pgp. just ignore"); } catch (OpenPgpException e) {
Log.d(LOGTAG,"faulty pgp. just ignore");
}
} }
} }
databaseBackend.updateContact(contact); databaseBackend.updateContact(contact);