wait for EmojiCompat to be initialized before using it (#791)

This commit is contained in:
Konrad Pozniak 2018-08-23 20:44:25 +02:00 committed by GitHub
parent 791a87e7a1
commit e89f8cf3ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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) {