// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/SettingPresenter.java
// public interface SettingPresenter {
// 
//     public String getUserName();
// 
//     public void setUserName(String name);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/SettingView.java
// public interface SettingView {
// 
//     public void updateUserName(String userName);
// 
// }
// 
// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/component/SettingComponent.java
// @Singleton
// @Component(
//         modules = TestSettingModule.class
// )
// public interface SettingComponent {
// 
//     void inject(SettingActivity activity);
// 
//     void inject(SettingTestCase testSetting);
// 
//     Config getConfig();
// 
//     public class Initializer {
//         public static SettingComponent mInstance;
// 
//         public static SettingComponent init(Application app, SettingView view) {
// 
//             SettingComponent component = Dagger_SettingComponent.builder()
//                     .testSettingModule(new TestSettingModule(view, ((Dagger2pracApp) app).MOCK_MODE)).build();
// 
//             mInstance = component;
//             return component;
//         }
// 
//     }
// 
// }


import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.newegg.tr.dagger2prac.R;
import com.newegg.tr.dagger2prac.presenter.SettingPresenter;
import com.newegg.tr.dagger2prac.view.SettingView;
import com.newegg.tr.dagger2prac.view.component.SettingComponent;
import javax.inject.Inject;
import butterknife.ButterKnife;
import butterknife.InjectView;
package com.newegg.tr.dagger2prac.view.activity;





public class SettingActivity extends BaseActivity implements SettingView, View.OnClickListener {

    @Inject
    SettingPresenter mPresenter;

    @InjectView(R.id.settingPage_userNameTextView)
    TextView mUserNameTextView;

    @InjectView(R.id.settingPage_changeUserNameButton)
    TextView mChangeNameButton;

    @Override
    protected void onCreateComponent() {
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/SettingPresenter.java
// public interface SettingPresenter {
// 
//     public String getUserName();
// 
//     public void setUserName(String name);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/SettingView.java
// public interface SettingView {
// 
//     public void updateUserName(String userName);
// 
// }
// 
// Path: app/src/debug/java/com/newegg/tr/dagger2prac/view/component/SettingComponent.java
// @Singleton
// @Component(
//         modules = TestSettingModule.class
// )
// public interface SettingComponent {
// 
//     void inject(SettingActivity activity);
// 
//     void inject(SettingTestCase testSetting);
// 
//     Config getConfig();
// 
//     public class Initializer {
//         public static SettingComponent mInstance;
// 
//         public static SettingComponent init(Application app, SettingView view) {
// 
//             SettingComponent component = Dagger_SettingComponent.builder()
//                     .testSettingModule(new TestSettingModule(view, ((Dagger2pracApp) app).MOCK_MODE)).build();
// 
//             mInstance = component;
//             return component;
//         }
// 
//     }
// 
// }


// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/activity/SettingActivity.java
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.newegg.tr.dagger2prac.R;
import com.newegg.tr.dagger2prac.presenter.SettingPresenter;
import com.newegg.tr.dagger2prac.view.SettingView;
import com.newegg.tr.dagger2prac.view.component.SettingComponent;
import javax.inject.Inject;
import butterknife.ButterKnife;
import butterknife.InjectView;

package com.newegg.tr.dagger2prac.view.activity;





public class SettingActivity extends BaseActivity implements SettingView, View.OnClickListener {

    @Inject
    SettingPresenter mPresenter;

    @InjectView(R.id.settingPage_userNameTextView)
    TextView mUserNameTextView;

    @InjectView(R.id.settingPage_changeUserNameButton)
    TextView mChangeNameButton;

    @Override
    protected void onCreateComponent() {
        SettingComponent.Initializer.init(getApplication(), this).inject(this);