wait for EmojiCompat to be initialized before using it (#791)
This commit is contained in:
parent
791a87e7a1
commit
e89f8cf3ee
|
@ -387,8 +387,13 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
|
|||
drawer.addItem(debugItem);
|
||||
}
|
||||
|
||||
EmojiCompat.get().registerInitCallback(new EmojiCompat.InitCallback() {
|
||||
@Override
|
||||
public void onInitialized() {
|
||||
updateProfiles();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private boolean handleProfileClick(IProfile profile, boolean current) {
|
||||
AccountEntity activeAccount = accountManager.getActiveAccount();
|
||||
|
|
Loading…
Reference in New Issue