// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/moves/MovesFragment.java
// public class MovesFragment extends BaseFragment<MovesContract.Presenter> implements MovesContract.View {
// 
//     private FragmentMovesBinding dataBinding;
// 
//     @Inject
//     public MovesFragment() {
//         //required empty public constructor for Injection
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_moves, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(MovesModel statsModel) {
//         dataBinding.setModel(statsModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/profile/ProfileFragment.java
// public class ProfileFragment extends BaseFragment<ProfileContract.Presenter> implements ProfileContract.View {
// 
//     @Inject
//     public ProfileFragment() {
//         // Required empty public constructor for Injection
//     }
// 
//     private FragmentProfileBinding dataBinding;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_profile, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(ProfileModel model) {
//         dataBinding.setModel(model);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/stats/StatsFragment.java
// public class StatsFragment extends BaseFragment<StatsContract.Presenter> implements StatsContract.View {
// 
//     private FragmentStatsBinding dataBinding;
// 
//     @Inject
//     public StatsFragment() {
//         //required empty public constructor
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_stats, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(StatsModel statsModel) {
//         dataBinding.setModel(statsModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/items/ItemsActivity.java
// public class ItemsActivity extends BaseUserActivity<ItemsContract.Presenter> implements ItemsContract.View {
// 
//     @Inject ItemsAdapter adapter;
//     @Inject LinearLayoutManager linearLayoutManager;
//     @Inject DividerItemDecoration dividerItemDecoration;
//     private ActivityItemsBinding binding;
// 
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         binding = DataBindingUtil.setContentView(this, R.layout.activity_items);
//         super.onCreate(savedInstanceState);
//         Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
//         toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
//         toolbar.setNavigationOnClickListener(view -> finish());
//     }
// 
//     @Override
//     public void showModel(ItemsModel model) {
//         binding.itemsRecyclerView.setAdapter(adapter);
//         binding.itemsRecyclerView.addItemDecoration(dividerItemDecoration);
//         binding.itemsRecyclerView.setLayoutManager(linearLayoutManager);
//         adapter.updateList(model.items);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/user/BaseUserActivity.java
// public abstract class BaseUserActivity<T extends BasePresenter> extends BaseActivity<T> {
// 
//     @Inject UserManager userManager;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         if (!userManager.isLoggedIn()) {
//             finishView();
//         }
//     }
// 
//     @Override
//     protected void androidInject() {
//         AndroidInjection.inject(this);
//     }
// 
//     protected void logoutUser() {
//         userManager.logOut();
//         finishView();
//     }
// 
// 
// }


import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.view.Menu;
import android.view.MenuItem;
import com.ragdroid.dahaka.R;
import com.ragdroid.dahaka.activity.home.moves.MovesFragment;
import com.ragdroid.dahaka.activity.home.profile.ProfileFragment;
import com.ragdroid.dahaka.activity.home.stats.StatsFragment;
import com.ragdroid.dahaka.activity.items.ItemsActivity;
import com.ragdroid.dahaka.databinding.ActivityHomeBinding;
import com.ragdroid.dahaka.user.BaseUserActivity;
import javax.inject.Inject;
package com.ragdroid.dahaka.activity.home;




public class HomeActivity extends BaseUserActivity<HomeContract.Presenter> {


    @Inject ProfileFragment profileFragment;
    @Inject StatsFragment statsFragment;
// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/moves/MovesFragment.java
// public class MovesFragment extends BaseFragment<MovesContract.Presenter> implements MovesContract.View {
// 
//     private FragmentMovesBinding dataBinding;
// 
//     @Inject
//     public MovesFragment() {
//         //required empty public constructor for Injection
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_moves, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(MovesModel statsModel) {
//         dataBinding.setModel(statsModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/profile/ProfileFragment.java
// public class ProfileFragment extends BaseFragment<ProfileContract.Presenter> implements ProfileContract.View {
// 
//     @Inject
//     public ProfileFragment() {
//         // Required empty public constructor for Injection
//     }
// 
//     private FragmentProfileBinding dataBinding;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_profile, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(ProfileModel model) {
//         dataBinding.setModel(model);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/stats/StatsFragment.java
// public class StatsFragment extends BaseFragment<StatsContract.Presenter> implements StatsContract.View {
// 
//     private FragmentStatsBinding dataBinding;
// 
//     @Inject
//     public StatsFragment() {
//         //required empty public constructor
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         super.onCreateView(inflater, container, savedInstanceState);
//         View view = inflater.inflate(R.layout.fragment_stats, container, false);
//         dataBinding = DataBindingUtil.bind(view);
//         return view;
//     }
// 
//     @Override
//     public void showModel(StatsModel statsModel) {
//         dataBinding.setModel(statsModel);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/activity/items/ItemsActivity.java
// public class ItemsActivity extends BaseUserActivity<ItemsContract.Presenter> implements ItemsContract.View {
// 
//     @Inject ItemsAdapter adapter;
//     @Inject LinearLayoutManager linearLayoutManager;
//     @Inject DividerItemDecoration dividerItemDecoration;
//     private ActivityItemsBinding binding;
// 
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         binding = DataBindingUtil.setContentView(this, R.layout.activity_items);
//         super.onCreate(savedInstanceState);
//         Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
//         toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
//         toolbar.setNavigationOnClickListener(view -> finish());
//     }
// 
//     @Override
//     public void showModel(ItemsModel model) {
//         binding.itemsRecyclerView.setAdapter(adapter);
//         binding.itemsRecyclerView.addItemDecoration(dividerItemDecoration);
//         binding.itemsRecyclerView.setLayoutManager(linearLayoutManager);
//         adapter.updateList(model.items);
//     }
// }
// 
// Path: app/src/main/java/com/ragdroid/dahaka/user/BaseUserActivity.java
// public abstract class BaseUserActivity<T extends BasePresenter> extends BaseActivity<T> {
// 
//     @Inject UserManager userManager;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         if (!userManager.isLoggedIn()) {
//             finishView();
//         }
//     }
// 
//     @Override
//     protected void androidInject() {
//         AndroidInjection.inject(this);
//     }
// 
//     protected void logoutUser() {
//         userManager.logOut();
//         finishView();
//     }
// 
// 
// }


// Path: app/src/main/java/com/ragdroid/dahaka/activity/home/HomeActivity.java
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.view.Menu;
import android.view.MenuItem;
import com.ragdroid.dahaka.R;
import com.ragdroid.dahaka.activity.home.moves.MovesFragment;
import com.ragdroid.dahaka.activity.home.profile.ProfileFragment;
import com.ragdroid.dahaka.activity.home.stats.StatsFragment;
import com.ragdroid.dahaka.activity.items.ItemsActivity;
import com.ragdroid.dahaka.databinding.ActivityHomeBinding;
import com.ragdroid.dahaka.user.BaseUserActivity;
import javax.inject.Inject;

package com.ragdroid.dahaka.activity.home;




public class HomeActivity extends BaseUserActivity<HomeContract.Presenter> {


    @Inject ProfileFragment profileFragment;
    @Inject StatsFragment statsFragment;
    @Inject MovesFragment movesFragment;