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

main
Konrad Pozniak 6 years ago committed by GitHub
parent f3a3013ffa
commit c6acee511e
  1. 7
      app/src/main/java/com/keylesspalace/tusky/MainActivity.java

@ -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…
Cancel
Save