package uk.co.sftrabbit.stackanswers;

import android.os.Bundle;
import android.view.View;
import uk.co.sftrabbit.stackanswers.app.DrawerActivity;

public class AuthenticationActivity extends DrawerActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_authentication);

		setDrawerIndicatorEnabled(false);

		getFragmentManager().beginTransaction()
			.add(R.id.authentication_content, new AuthInfoFragment())
			.commit();
	}

	public void showAuthenticationPage(View view) {
		getFragmentManager().beginTransaction()
			.setCustomAnimations(R.animator.fragment_open_enter, 0)
			.replace(R.id.authentication_content, new AuthFragment())
			.addToBackStack(null)
			.commit();
	}
}

@@ -32,16 +32,81 @@
 swers;%0A%0A
+import android.app.Fragment;%0Aimport android.app.FragmentManager;%0A
 import a
@@ -123,16 +123,16 @@
 Bundle;%0A
-
 import a
@@ -267,16 +267,59 @@
 ivity %7B%0A
+%09private FragmentManager fragmentManager;%0A%0A
 %09@Overri
@@ -501,16 +501,196 @@
 alse);%0A%0A
+%09%09fragmentManager = getFragmentManager();%0A%0A%09%09Fragment authInfoFragment =%0A%09%09%09fragmentManager.findFragmentByTag(AuthInfoFragment.class.getName());%0A%09%09if (authInfoFragment == null) %7B%0A%09
 %09%09getFra
@@ -719,24 +719,25 @@
 ansaction()%0A
+%09
 %09%09%09.add(R.id
@@ -779,26 +779,70 @@
 foFragment()
+,%0A%09%09%09%09     AuthInfoFragment.class.getName()
 )%0A
+%09
 %09%09%09.commit()
@@ -843,16 +843,20 @@
 mmit();%0A
+%09%09%7D%0A
 %09%7D%0A%0A%09pub

stop orientation change adding auth info