fixed a small graphic glitch
This commit is contained in:
parent
9581dfcde4
commit
03d96266f8
|
@ -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:listSelector="@android:color/transparent"
|
||||||
android:transcriptMode="alwaysScroll"
|
android:transcriptMode="alwaysScroll"
|
||||||
android:listSelector="@android:color/transparent">
|
tools:listitem="@layout/message_sent"
|
||||||
|
android:stackFromBottom="true">
|
||||||
|
|
||||||
</ListView>
|
</ListView>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/info_box"
|
android:id="@+id/info_box"
|
||||||
|
|
|
@ -210,18 +210,20 @@ 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);
|
||||||
}
|
}
|
||||||
|
PgpEngine pgp = getPgpEngine();
|
||||||
|
if (pgp!=null) {
|
||||||
Element x = packet.findChild("x");
|
Element x = packet.findChild("x");
|
||||||
if ((x != null)
|
if ((x != null)
|
||||||
&& (x.getAttribute("xmlns").equals("jabber:x:signed"))) {
|
&& (x.getAttribute("xmlns").equals("jabber:x:signed"))) {
|
||||||
try {
|
try {
|
||||||
Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from"));
|
Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from"));
|
||||||
contact.setPgpKeyId(getPgpEngine().fetchKeyId(packet.findChild("status")
|
contact.setPgpKeyId(pgp.fetchKeyId(packet.findChild("status")
|
||||||
.getContent(), x.getContent()));
|
.getContent(), x.getContent()));
|
||||||
databaseBackend.updateContact(contact);
|
|
||||||
} catch (OpenPgpException e) {
|
} catch (OpenPgpException e) {
|
||||||
Log.d(LOGTAG,"faulty pgp. just ignore");
|
Log.d(LOGTAG,"faulty pgp. just ignore");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
databaseBackend.updateContact(contact);
|
databaseBackend.updateContact(contact);
|
||||||
} else if (type.equals("unavailable")) {
|
} else if (type.equals("unavailable")) {
|
||||||
if (fromParts.length != 2) {
|
if (fromParts.length != 2) {
|
||||||
|
|
Loading…
Reference in New Issue