// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/TransactionsViewerApp.java
// public class TransactionsViewerApp extends Application {
// 
//     private ApplicationComponent applicationComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         applicationComponent = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return applicationComponent;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/components/ProductsListComponent.java
// @ActivityScope
// @Component(dependencies = ApplicationComponent.class,
//         modules = {
//                 ActivityModule.class,
//                 ProductsListModule.class
//         })
// public interface ProductsListComponent extends AbstractActivityComponent {
//     void inject(ProductsListActivity productsListActivity);
// 
//     void inject(ProductsListFragment productsListFragment);
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/modules/ActivityModule.java
// @Module
// public class ActivityModule {
//     private final Activity activityContext;
// 
//     public ActivityModule(Activity activityContext) {
//         this.activityContext = activityContext;
//     }
// 
//     @Provides
//     @ActivityScope
//     Activity getActivityContext() {
//         return activityContext;
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.TransactionsViewerApp;
import com.raulh82vlc.TransactionsViewer.di.components.DaggerProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.components.ProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.modules.ActivityModule;
        }
        return mProductsListComponent;
    }


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        component().inject(this);
        setToolbarInitialisation();
        setInitialTitle();
    }

    @Override
    protected void setInitialTitle() {
        mToolbar.setTitle(getString(R.string.main_screen));
    }

    @Override
    protected void setToolbarInitialisation() {
        setSupportActionBar(mToolbar);
        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.setHomeButtonEnabled(false);
            actionBar.setDisplayHomeAsUpEnabled(false);
        }
    }

    @Override
    protected int getLayoutId() {
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/TransactionsViewerApp.java
// public class TransactionsViewerApp extends Application {
// 
//     private ApplicationComponent applicationComponent;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         applicationComponent = DaggerApplicationComponent.builder()
//                 .applicationModule(new ApplicationModule(this))
//                 .build();
//     }
// 
//     public ApplicationComponent component() {
//         return applicationComponent;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/components/ProductsListComponent.java
// @ActivityScope
// @Component(dependencies = ApplicationComponent.class,
//         modules = {
//                 ActivityModule.class,
//                 ProductsListModule.class
//         })
// public interface ProductsListComponent extends AbstractActivityComponent {
//     void inject(ProductsListActivity productsListActivity);
// 
//     void inject(ProductsListFragment productsListFragment);
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/di/modules/ActivityModule.java
// @Module
// public class ActivityModule {
//     private final Activity activityContext;
// 
//     public ActivityModule(Activity activityContext) {
//         this.activityContext = activityContext;
//     }
// 
//     @Provides
//     @ActivityScope
//     Activity getActivityContext() {
//         return activityContext;
//     }
// }


// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/ui/activities/ProductsListActivity.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.TransactionsViewerApp;
import com.raulh82vlc.TransactionsViewer.di.components.DaggerProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.components.ProductsListComponent;
import com.raulh82vlc.TransactionsViewer.di.modules.ActivityModule;

        }
        return mProductsListComponent;
    }


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        component().inject(this);
        setToolbarInitialisation();
        setInitialTitle();
    }

    @Override
    protected void setInitialTitle() {
        mToolbar.setTitle(getString(R.string.main_screen));
    }

    @Override
    protected void setToolbarInitialisation() {
        setSupportActionBar(mToolbar);
        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.setHomeButtonEnabled(false);
            actionBar.setDisplayHomeAsUpEnabled(false);
        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_products_list;