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

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

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