wait for EmojiCompat to be initialized before using it (#791)
This commit is contained in:
		
					parent
					
						
							
								791a87e7a1
							
						
					
				
			
			
				commit
				
					
						e89f8cf3ee
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -387,7 +387,12 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut | |||
|             drawer.addItem(debugItem); | ||||
|         } | ||||
| 
 | ||||
|         updateProfiles(); | ||||
|         EmojiCompat.get().registerInitCallback(new EmojiCompat.InitCallback() { | ||||
|             @Override | ||||
|             public void onInitialized() { | ||||
|                 updateProfiles(); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     private boolean handleProfileClick(IProfile profile, boolean current) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue