Exemple #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // dagger
    Application.inject(this);

    // inject extras
    Dart.inject(this);

    initVariables();
  }
Exemple #2
0
  /**
   * *************************************************** ---------------- * Bus *
   * --------------------
   *
   * <p>**************************************************
   */
  private void otto(boolean register) {

    if (register) Application.getBus().register(this);
    else Application.getBus().unregister(this);
  }