package adullact.publicrowdfunding.controller.register;
-import adullact.publicrowdfunding.MainActivity;
-import adullact.publicrowdfunding.R;
-import adullact.publicrowdfunding.controller.project.all.ListProjectsFragment;
-import adullact.publicrowdfunding.model.server.event.RegistrationEvent;
-import adullact.publicrowdfunding.model.server.request.RegistrationRequest;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.widget.LinearLayout;
import android.widget.Toast;
+import adullact.publicrowdfunding.MainActivity;
+import adullact.publicrowdfunding.R;
+import adullact.publicrowdfunding.controller.project.all.ListProjectsFragment;
+import adullact.publicrowdfunding.model.server.event.RegistrationEvent;
+import adullact.publicrowdfunding.model.server.request.RegistrationRequest;
+
/**
* @author Ferrand and Nelaupe
*/
view.setFocusableInTouchMode(true);
view.requestFocus();
- view.setOnKeyListener( new OnKeyListener()
- {
- @Override
- public boolean onKey( View v, int keyCode, KeyEvent event )
- {
- if( keyCode == KeyEvent.KEYCODE_BACK )
- {
- FragmentTransaction ft = getFragmentManager().beginTransaction();
- //ft.setCustomAnimations(R.anim.enter, R.anim.exit);
- Fragment fragment = new ConnexionFragment();
- ft.replace(R.id.big_font, fragment);
-
- ft.commit();
- return true;
- }
- return false;
- }
- } );
-
+
return view;
}