skip refresh if binding is missing
This commit is contained in:
		
							parent
							
								
									8aba540717
								
							
						
					
					
						commit
						21c9ffd8b2
					
				| @ -1826,6 +1826,10 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke | |||||||
| 
 | 
 | ||||||
| 	@Override | 	@Override | ||||||
| 	public void refresh() { | 	public void refresh() { | ||||||
|  | 		if (this.binding == null) { | ||||||
|  | 			Log.d(Config.LOGTAG,"ConversationFragment.refresh() skipped updated because view binding was null"); | ||||||
|  | 			return; | ||||||
|  | 		} | ||||||
| 		this.refresh(true); | 		this.refresh(true); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -154,6 +154,10 @@ public class ConversationsOverviewFragment extends XmppFragment implements Enhan | |||||||
| 
 | 
 | ||||||
| 	@Override | 	@Override | ||||||
| 	void refresh() { | 	void refresh() { | ||||||
|  | 		if (this.binding == null || this.activity == null) { | ||||||
|  | 			Log.d(Config.LOGTAG,"ConversationsOverviewFragment.refresh() skipped updated because view binding or activity was null"); | ||||||
|  | 			return; | ||||||
|  | 		} | ||||||
| 		this.activity.xmppConnectionService.populateWithOrderedConversations(this.conversations); | 		this.activity.xmppConnectionService.populateWithOrderedConversations(this.conversations); | ||||||
| 		Conversation removed = this.swipedConversation.peek(); | 		Conversation removed = this.swipedConversation.peek(); | ||||||
| 		if (removed != null) { | 		if (removed != null) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch