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

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