// Path: app/src/main/java/org/kaerdan/mvp_navigation/example1_activities/ArticleActivity.java
// public class ArticleActivity extends AppCompatActivity {
// 
//     private static final String ARTICLE_ID_TAG = "Article id";
// 
//     public static Intent createIntent(final Context context, final int id) {
//         Intent intent = new Intent(context, ArticleActivity.class);
//         intent.putExtra(ARTICLE_ID_TAG, id);
//         return intent;
//     }
// 
//     @Override
//     protected void onCreate(final Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_single_fragment);
//         if (savedInstanceState == null) {
//             getSupportFragmentManager().beginTransaction()
//                                        .add(R.id.content_frame,
//                 ArticleFragment.newInstance(getIntent().getIntExtra(ARTICLE_ID_TAG, 0)), null).commit();
//         }
// 
//         getSupportActionBar().setHomeButtonEnabled(true);
//         getSupportActionBar().setDisplayHomeAsUpEnabled(true);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(final MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// }
// 
// Path: app/src/main/java/org/kaerdan/mvp_navigation/example1_activities/FavoriteListActivity.java
// public class FavoriteListActivity extends AppCompatActivity implements FavoriteListContract.NavigatorProvider {
// 
//     @Override
//     protected void onCreate(final Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_single_fragment);
//         if (savedInstanceState == null) {
//             getSupportFragmentManager().beginTransaction().add(R.id.content_frame, new FavoriteListFragment(), null)
//                                        .commit();
//         }
// 
//         getSupportActionBar().setHomeButtonEnabled(true);
//         getSupportActionBar().setDisplayHomeAsUpEnabled(true);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(final MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @NonNull
//     @Override
//     public FavoriteListContract.Navigator getNavigator(final FavoriteListContract.Presenter presenter) {
//         return new ActivitiesFavoriteListNavigator(this);
//     }
// }


import org.kaerdan.mvp_navigation.example1_activities.ArticleActivity;
import org.kaerdan.mvp_navigation.example1_activities.FavoriteListActivity;
import android.content.Context;
import android.content.Intent;
package org.kaerdan.mvp_navigation.example4_injection;



public class InjectActivityNavigator implements InjectArticleListContract.Navigator {

    private final Context mActivityContext;

    public InjectActivityNavigator(final Context activityContext) {
        this.mActivityContext = activityContext;
    }

    @Override
// Path: app/src/main/java/org/kaerdan/mvp_navigation/example1_activities/ArticleActivity.java
// public class ArticleActivity extends AppCompatActivity {
// 
//     private static final String ARTICLE_ID_TAG = "Article id";
// 
//     public static Intent createIntent(final Context context, final int id) {
//         Intent intent = new Intent(context, ArticleActivity.class);
//         intent.putExtra(ARTICLE_ID_TAG, id);
//         return intent;
//     }
// 
//     @Override
//     protected void onCreate(final Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_single_fragment);
//         if (savedInstanceState == null) {
//             getSupportFragmentManager().beginTransaction()
//                                        .add(R.id.content_frame,
//                 ArticleFragment.newInstance(getIntent().getIntExtra(ARTICLE_ID_TAG, 0)), null).commit();
//         }
// 
//         getSupportActionBar().setHomeButtonEnabled(true);
//         getSupportActionBar().setDisplayHomeAsUpEnabled(true);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(final MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// }
// 
// Path: app/src/main/java/org/kaerdan/mvp_navigation/example1_activities/FavoriteListActivity.java
// public class FavoriteListActivity extends AppCompatActivity implements FavoriteListContract.NavigatorProvider {
// 
//     @Override
//     protected void onCreate(final Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_single_fragment);
//         if (savedInstanceState == null) {
//             getSupportFragmentManager().beginTransaction().add(R.id.content_frame, new FavoriteListFragment(), null)
//                                        .commit();
//         }
// 
//         getSupportActionBar().setHomeButtonEnabled(true);
//         getSupportActionBar().setDisplayHomeAsUpEnabled(true);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(final MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @NonNull
//     @Override
//     public FavoriteListContract.Navigator getNavigator(final FavoriteListContract.Presenter presenter) {
//         return new ActivitiesFavoriteListNavigator(this);
//     }
// }


// Path: app/src/main/java/org/kaerdan/mvp_navigation/example4_injection/InjectActivityNavigator.java
import org.kaerdan.mvp_navigation.example1_activities.ArticleActivity;
import org.kaerdan.mvp_navigation.example1_activities.FavoriteListActivity;
import android.content.Context;
import android.content.Intent;

package org.kaerdan.mvp_navigation.example4_injection;



public class InjectActivityNavigator implements InjectArticleListContract.Navigator {

    private final Context mActivityContext;

    public InjectActivityNavigator(final Context activityContext) {
        this.mActivityContext = activityContext;
    }

    @Override
    public void openArticle(final int id) {