// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Data/Settings/AppSettings.java
// public class AppSettings {
// 
// 	public static boolean getOpenInBrowserPref (Context context) {
// 		SharedPreferences sharedPrefs = PreferenceManager
// 				.getDefaultSharedPreferences (context);
// 		return sharedPrefs.getBoolean (SettingsActivity.KEY_OPEN_SYSTEM_BROWSER, false);
// 	}
// 
// 	public static boolean getCrashDataPref (Context context) {
// 		SharedPreferences sharedPrefs = PreferenceManager
// 				.getDefaultSharedPreferences (context);
// 		return sharedPrefs.getBoolean (SettingsActivity.KEY_CRASH_DATA, true);
// 	}
// }
// 
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Activities/Settings/SettingsActivity.java
// public class SettingsActivity extends DrawerActivity {
// 
// 	public static final String KEY_OPEN_SYSTEM_BROWSER =
// 			"preference_open_link_in_browser";
// 	public static final String KEY_CRASH_DATA = "preference_crash_data";
// 	public static final String KEY_OPEN_SOURCE_LICENSES =
// 			"preference_open_source_licenses";
// 	public static final String KEY_SEND_FEEDBACK = "preference_send_feedback";
// 
// 	@Override
// 	protected int getSelfNavDrawerItem () {
// 		return NAVDRAWER_ITEM_SETTINGS;
// 	}
// 
// 	@Override
// 	protected void onCreate (Bundle savedInstanceState) {
// 		super.onCreate (savedInstanceState);
// 		setContentView (R.layout.activity_preferences);
// 		setToolBar ();
// 		getFragmentManager ().beginTransaction ().replace (R.id.content_frame,
// 				new SettingsFragment ()).commit ();
// 	}
// }
// 
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/DrawerAdapter.java
// public class DrawerAdapter extends BaseAdapter {
// 
// 	private String[] mDrawerData;
// 	private Context mContext;
// 	private int mCurrentActivity;
// 
// 	public DrawerAdapter (Context context, String[] data, int currentActivity) {
// 		this.mContext = context;
// 		this.mDrawerData = data;
// 		this.mCurrentActivity = currentActivity;
// 	}
// 
// 	@Override
// 	public int getCount () {
// 		return 4;
// 	}
// 
// 	@Override
// 	public Object getItem (int position) {
// 		return mDrawerData[position];
// 	}
// 
// 	@Override
// 	public long getItemId (int position) {
// 		return position;
// 	}
// 
// 	@Override
// 	public View getView (int position, View view, ViewGroup parent) {
// 		ViewHolder holder;
// 		if (view != null) {
// 			holder = (ViewHolder) view.getTag ();
// 		} else {
// 			view = LayoutInflater.from (mContext).inflate (R.layout.item_drawer,
// 					null);
// 			holder = new ViewHolder (view);
// 			view.setTag (holder);
// 		}
// 		holder.item.setTypeface (Typeface.createFromAsset (
// 				mContext.getAssets (),
// 				"fonts/Roboto-Medium.ttf"));
// 		holder.item.setText (mDrawerData[position]);
// 		if (mCurrentActivity == position) {
// 			holder.item.setTextColor (getColor (R.color.primary_color));
// 			holder.item.setBackgroundColor (getColor (R.color.ripple_color));
// 		}
// 		return view;
// 	}
// 
// 	private int getColor (int id) {
// 		return mContext.getResources ().getColor (id);
// 	}
// 
// 	static class ViewHolder {
// 		@BindView (R2.id.main_drawer_item)
// 		TextView item;
// 
// 		ViewHolder (View view) {
// 			ButterKnife.bind (this, view);
// 		}
// 	}
// 
// }
// 
// Path: app/src/main/java/com/squareup/picasso/PicassoTools.java
// public class PicassoTools {
// 
// 	public static void clearCache (Picasso p) {
// 		p.cache.clear ();
// 	}
// }


import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Toolbar;
import android.view.Gravity;
import android.view.MenuItem;
import android.widget.ListView;
import com.jaspervanriet.huntingthatproduct.Data.Settings.AppSettings;
import com.jaspervanriet.huntingthatproduct.R;
import com.jaspervanriet.huntingthatproduct.R2;
import com.jaspervanriet.huntingthatproduct.Views.Activities.Settings.SettingsActivity;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.DrawerAdapter;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.PicassoTools;
import butterknife.BindView;
import butterknife.ButterKnife;
				(position));
	}

	private void onDrawerItemClicked (final int item) {
		if (!(item == getSelfNavDrawerItem ())) {
			// Wait for drawer to close before starting activity
			mHandler.postDelayed (() -> goToNavDrawerItem (item), NAVDRAWER_LAUNCH_DELAY);
		}
		closeNavDrawer ();
	}

	public Toolbar getToolbar () {
		return mToolBar;
	}

	private void goToNavDrawerItem (int item) {
		Intent intent;
		switch (item) {
			case NAVDRAWER_ITEM_TODAYS_PRODUCTS:
				intent = new Intent (this, MainActivity.class);
				intent.putExtra ("toolbar_animation", false);
				startActivity (intent);
				overridePendingTransition (0, 0);
				finish ();
				break;
			case NAVDRAWER_ITEM_COLLECTIONS:
				intent = new Intent (this, CollectionsListActivity.class);
				startActivity (intent);
				overridePendingTransition (0, 0);
				finish ();
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Data/Settings/AppSettings.java
// public class AppSettings {
// 
// 	public static boolean getOpenInBrowserPref (Context context) {
// 		SharedPreferences sharedPrefs = PreferenceManager
// 				.getDefaultSharedPreferences (context);
// 		return sharedPrefs.getBoolean (SettingsActivity.KEY_OPEN_SYSTEM_BROWSER, false);
// 	}
// 
// 	public static boolean getCrashDataPref (Context context) {
// 		SharedPreferences sharedPrefs = PreferenceManager
// 				.getDefaultSharedPreferences (context);
// 		return sharedPrefs.getBoolean (SettingsActivity.KEY_CRASH_DATA, true);
// 	}
// }
// 
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Activities/Settings/SettingsActivity.java
// public class SettingsActivity extends DrawerActivity {
// 
// 	public static final String KEY_OPEN_SYSTEM_BROWSER =
// 			"preference_open_link_in_browser";
// 	public static final String KEY_CRASH_DATA = "preference_crash_data";
// 	public static final String KEY_OPEN_SOURCE_LICENSES =
// 			"preference_open_source_licenses";
// 	public static final String KEY_SEND_FEEDBACK = "preference_send_feedback";
// 
// 	@Override
// 	protected int getSelfNavDrawerItem () {
// 		return NAVDRAWER_ITEM_SETTINGS;
// 	}
// 
// 	@Override
// 	protected void onCreate (Bundle savedInstanceState) {
// 		super.onCreate (savedInstanceState);
// 		setContentView (R.layout.activity_preferences);
// 		setToolBar ();
// 		getFragmentManager ().beginTransaction ().replace (R.id.content_frame,
// 				new SettingsFragment ()).commit ();
// 	}
// }
// 
// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/DrawerAdapter.java
// public class DrawerAdapter extends BaseAdapter {
// 
// 	private String[] mDrawerData;
// 	private Context mContext;
// 	private int mCurrentActivity;
// 
// 	public DrawerAdapter (Context context, String[] data, int currentActivity) {
// 		this.mContext = context;
// 		this.mDrawerData = data;
// 		this.mCurrentActivity = currentActivity;
// 	}
// 
// 	@Override
// 	public int getCount () {
// 		return 4;
// 	}
// 
// 	@Override
// 	public Object getItem (int position) {
// 		return mDrawerData[position];
// 	}
// 
// 	@Override
// 	public long getItemId (int position) {
// 		return position;
// 	}
// 
// 	@Override
// 	public View getView (int position, View view, ViewGroup parent) {
// 		ViewHolder holder;
// 		if (view != null) {
// 			holder = (ViewHolder) view.getTag ();
// 		} else {
// 			view = LayoutInflater.from (mContext).inflate (R.layout.item_drawer,
// 					null);
// 			holder = new ViewHolder (view);
// 			view.setTag (holder);
// 		}
// 		holder.item.setTypeface (Typeface.createFromAsset (
// 				mContext.getAssets (),
// 				"fonts/Roboto-Medium.ttf"));
// 		holder.item.setText (mDrawerData[position]);
// 		if (mCurrentActivity == position) {
// 			holder.item.setTextColor (getColor (R.color.primary_color));
// 			holder.item.setBackgroundColor (getColor (R.color.ripple_color));
// 		}
// 		return view;
// 	}
// 
// 	private int getColor (int id) {
// 		return mContext.getResources ().getColor (id);
// 	}
// 
// 	static class ViewHolder {
// 		@BindView (R2.id.main_drawer_item)
// 		TextView item;
// 
// 		ViewHolder (View view) {
// 			ButterKnife.bind (this, view);
// 		}
// 	}
// 
// }
// 
// Path: app/src/main/java/com/squareup/picasso/PicassoTools.java
// public class PicassoTools {
// 
// 	public static void clearCache (Picasso p) {
// 		p.cache.clear ();
// 	}
// }


// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Activities/DrawerActivity.java
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Toolbar;
import android.view.Gravity;
import android.view.MenuItem;
import android.widget.ListView;
import com.jaspervanriet.huntingthatproduct.Data.Settings.AppSettings;
import com.jaspervanriet.huntingthatproduct.R;
import com.jaspervanriet.huntingthatproduct.R2;
import com.jaspervanriet.huntingthatproduct.Views.Activities.Settings.SettingsActivity;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.DrawerAdapter;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.PicassoTools;
import butterknife.BindView;
import butterknife.ButterKnife;

				(position));
	}

	private void onDrawerItemClicked (final int item) {
		if (!(item == getSelfNavDrawerItem ())) {
			// Wait for drawer to close before starting activity
			mHandler.postDelayed (() -> goToNavDrawerItem (item), NAVDRAWER_LAUNCH_DELAY);
		}
		closeNavDrawer ();
	}

	public Toolbar getToolbar () {
		return mToolBar;
	}

	private void goToNavDrawerItem (int item) {
		Intent intent;
		switch (item) {
			case NAVDRAWER_ITEM_TODAYS_PRODUCTS:
				intent = new Intent (this, MainActivity.class);
				intent.putExtra ("toolbar_animation", false);
				startActivity (intent);
				overridePendingTransition (0, 0);
				finish ();
				break;
			case NAVDRAWER_ITEM_COLLECTIONS:
				intent = new Intent (this, CollectionsListActivity.class);
				startActivity (intent);
				overridePendingTransition (0, 0);
				finish ();
				break;