// Path: app/src/main/java/kesshou/android/daanx/views/ContentActivity.java
// public class ContentActivity extends BaseActivity {
// 
// 	private FirebaseAnalytics mFirebaseAnalytics;
// 
// 	@Override
// 	protected void onCreate(Bundle savedInstanceState) {
// 		super.onCreate(savedInstanceState);
// 		setContentView(R.layout.activity_content);
// 		Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
// 		toolbar.setBackgroundColor(Color.TRANSPARENT);
// 		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) toolbar.setElevation(0);
// 		toolbar.setTitle("");
// 		toolbar.inflateMenu(R.menu.content_toolbar_menu_blue);
// 		toolbar.setNavigationIcon(R.drawable.btn_back_blue);
// 		toolbar.setNavigationOnClickListener(new View.OnClickListener() {
// 			@Override
// 			public void onClick(View view) {
// 				finish();
// 			}
// 		});
// 
// 		// Obtain the FirebaseAnalytics instance.
// 		mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
// 
// //		setSupportActionBar(toolbar);
// 		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) getWindow().setStatusBarColor(ContextCompat.getColor(getApplicationContext(),R.color.black_transparent));
// //		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// 
// 		Bundle bundle = getIntent().getExtras();
// 
// 		TextView title = (TextView) findViewById(R.id.title);
// 		title.setText(bundle.getString("title"));
// 		TextView title_help = (TextView) findViewById(R.id.title_help);
// 		title_help.setText(bundle.getString("title_help"));
// 
// 		final LinearLayout layout = (LinearLayout) findViewById(R.id.content);
// 		View fragment = ContentRouter.getFragment(bundle.getInt("type"),ContentActivity.this);
// 		layout.addView(fragment);
// 
// 		LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
// 		fragment.setLayoutParams(layoutParams);
// 		fragment.requestLayout();
// 
// 		toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
// 			@Override
// 			public boolean onMenuItemClick(MenuItem item) {
// 				switch (item.getItemId()){
// 					case R.id.menu_share:
// 						Bundle bundle = new Bundle();
// 						bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "Share");
// 						bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "Share");
// 						bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "fn");
// 						mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SHARE, bundle);
// 						ViewShareUtils.share(getApplicationContext(),ContentActivity.this,layout);
// 						break;
// 				}
// 				return false;
// 			}
// 		});
// 
// 	}
// 
// }


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import kesshou.android.daanx.views.ContentActivity;
package kesshou.android.daanx.util;



/**
 * Created by yoyoIU on 2016/11/8.
 */

public class ActivityUtils {
	public static void openContent(Context context, int type, int title, int titleHelp){
		Intent intent = new Intent();
		intent.setClass(context.getApplicationContext(), ContentActivity.class);
// Path: app/src/main/java/kesshou/android/daanx/views/ContentActivity.java
// public class ContentActivity extends BaseActivity {
// 
// 	private FirebaseAnalytics mFirebaseAnalytics;
// 
// 	@Override
// 	protected void onCreate(Bundle savedInstanceState) {
// 		super.onCreate(savedInstanceState);
// 		setContentView(R.layout.activity_content);
// 		Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
// 		toolbar.setBackgroundColor(Color.TRANSPARENT);
// 		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) toolbar.setElevation(0);
// 		toolbar.setTitle("");
// 		toolbar.inflateMenu(R.menu.content_toolbar_menu_blue);
// 		toolbar.setNavigationIcon(R.drawable.btn_back_blue);
// 		toolbar.setNavigationOnClickListener(new View.OnClickListener() {
// 			@Override
// 			public void onClick(View view) {
// 				finish();
// 			}
// 		});
// 
// 		// Obtain the FirebaseAnalytics instance.
// 		mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
// 
// //		setSupportActionBar(toolbar);
// 		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) getWindow().setStatusBarColor(ContextCompat.getColor(getApplicationContext(),R.color.black_transparent));
// //		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// 
// 		Bundle bundle = getIntent().getExtras();
// 
// 		TextView title = (TextView) findViewById(R.id.title);
// 		title.setText(bundle.getString("title"));
// 		TextView title_help = (TextView) findViewById(R.id.title_help);
// 		title_help.setText(bundle.getString("title_help"));
// 
// 		final LinearLayout layout = (LinearLayout) findViewById(R.id.content);
// 		View fragment = ContentRouter.getFragment(bundle.getInt("type"),ContentActivity.this);
// 		layout.addView(fragment);
// 
// 		LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
// 		fragment.setLayoutParams(layoutParams);
// 		fragment.requestLayout();
// 
// 		toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
// 			@Override
// 			public boolean onMenuItemClick(MenuItem item) {
// 				switch (item.getItemId()){
// 					case R.id.menu_share:
// 						Bundle bundle = new Bundle();
// 						bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "Share");
// 						bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "Share");
// 						bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "fn");
// 						mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SHARE, bundle);
// 						ViewShareUtils.share(getApplicationContext(),ContentActivity.this,layout);
// 						break;
// 				}
// 				return false;
// 			}
// 		});
// 
// 	}
// 
// }


// Path: app/src/main/java/kesshou/android/daanx/util/ActivityUtils.java
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import kesshou.android.daanx.views.ContentActivity;

package kesshou.android.daanx.util;



/**
 * Created by yoyoIU on 2016/11/8.
 */

public class ActivityUtils {
	public static void openContent(Context context, int type, int title, int titleHelp){
		Intent intent = new Intent();
		intent.setClass(context.getApplicationContext(), ContentActivity.class);
		Bundle bundle = new Bundle();