@@ -0,0 +1,985 @@
+package com.sedsoftware.xyzreader.ui;%0A%0Aimport android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport com.sedsoftware.xyzreader.XYZReaderApp;%0Aimport com.sedsoftware.xyzreader.injection.components.ActivityComponent;%0Aimport com.sedsoftware.xyzreader.injection.components.DaggerActivityComponent;%0Aimport com.sedsoftware.xyzreader.injection.modules.ActivityModule;%0A%0Apublic class BaseActivity extends AppCompatActivity %7B%0A%0A  private ActivityComponent activityComponent;%0A%0A  @Override%0A  protected void onCreate(@Nullable Bundle savedInstanceState) %7B%0A    super.onCreate(savedInstanceState);%0A%0A    if (activityComponent == null) %7B%0A      activityComponent = DaggerActivityComponent.builder()%0A          .activityModule(new ActivityModule(this))%0A          .applicationComponent(XYZReaderApp.get(this).getComponent())%0A          .build();%0A    %7D%0A  %7D%0A%0A  public ActivityComponent getActivityComponent() %7B%0A    return activityComponent;%0A  %7D%0A%7D%0A

Add BaseActivity for all app activities