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

    // dagger
    Application.inject(this);

    // inject extras
    Dart.inject(this);

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

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