wait for EmojiCompat to be initialized before using it (#791)
This commit is contained in:
parent
791a87e7a1
commit
e89f8cf3ee
|
@ -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…
Reference in New Issue