package com.growthbeat.message.view;

import android.os.Bundle;
import android.os.Parcelable;
import android.support.v4.app.FragmentActivity;
import android.view.Window;

import com.growthbeat.message.model.Message;

public class AlertActivity extends FragmentActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);

		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setTheme(android.R.style.Theme_Translucent);

		Message message = (Message) getIntent().getExtras().get("message");
		Bundle bundle = new Bundle();
		bundle.putParcelable("message", (Parcelable) message);

		switch (message.getType()) {
		case plain:
			AlertFragment fragment = new AlertFragment();
			fragment.setCancelable(false);
			fragment.setArguments(bundle);
			fragment.show(getSupportFragmentManager(), getClass().getName());
			break;

		case image:
			ImageFragment imageFragment = new ImageFragment();
			imageFragment.setArguments(bundle);
			getSupportFragmentManager().beginTransaction().replace(android.R.id.content, imageFragment).commitAllowingStateLoss();
		default:
			break;
		}

	}

	@Override
	public void onDestroy() {
		super.onDestroy();
	}

}

@@ -686,17 +686,22 @@
 ragment 
-f
+alertF
 ragment 
@@ -722,25 +722,30 @@
 gment();%0A%09%09%09
-f
+alertF
 ragment.setC
@@ -761,25 +761,30 @@
 (false);%0A%09%09%09
-f
+alertF
 ragment.setA
@@ -804,17 +804,22 @@
 le);%0A%09%09%09
-f
+alertF
 ragment.
@@ -1115,16 +1115,30 @@
 Loss();%0A
+%09%09%09break;%0A%09%09%09%0A
 %09%09defaul

Change Fragment name