Work fork of an Android Jabber client for bridge users git.sr.ht/~singpolyma/cheogram-android
sopranica sgx xmpp jabber
0

Configure Feed

Select the types of activity you want to include in your feed.

Only refresh the command recycler if we need to

Otherwise every UI refresh of any kind causes text boxes to lose focus.

Stephen Paul Weber (Jul 6, 2023, 11:11 PM -0500) 2cc5d3b2 57f0594e

+7 -1
+7 -1
src/main/java/eu/siacs/conversations/entities/Conversation.java
··· 1769 1769 if (mimeType.startsWith("image/") && "https".equals(uri.getScheme())) { 1770 1770 final Drawable d = cache.get(uri.toString()); 1771 1771 if (d == null) { 1772 + synchronized (CommandSession.this) { 1773 + waitingForRefresh = true; 1774 + } 1772 1775 int size = (int)(xmppConnectionService.getResources().getDisplayMetrics().density * 288); 1773 1776 Message dummy = new Message(Conversation.this, uri.toString(), Message.ENCRYPTION_NONE); 1774 1777 dummy.setFileParams(new Message.FileParams(uri.toString())); ··· 2589 2592 protected WebView actionToWebview = null; 2590 2593 protected int fillableFieldCount = 0; 2591 2594 protected IqPacket pendingResponsePacket = null; 2595 + protected boolean waitingForRefresh = false; 2592 2596 2593 2597 CommandSession(String title, String node, XmppConnectionService xmppConnectionService) { 2594 2598 loading(); ··· 3063 3067 } 3064 3068 3065 3069 public void refresh() { 3066 - notifyDataSetChanged(); 3070 + synchronized(this) { 3071 + if (waitingForRefresh) notifyDataSetChanged(); 3072 + } 3067 3073 } 3068 3074 3069 3075 protected void loading() {