Fix registration regression bug caused by #151

This commit is contained in:
Lance Johnson 2013-04-09 23:16:02 -05:00
parent b245754710
commit 0d71c8ac59
2 changed files with 5 additions and 1 deletions

View file

@ -4,10 +4,11 @@ import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.newsblur.R;
import com.newsblur.fragment.RegisterProgressFragment;
public class RegisterProgress extends NbFragmentActivity {
public class RegisterProgress extends SherlockFragmentActivity {
private FragmentManager fragmentManager;
private String currentTag = "fragment";

View file

@ -79,6 +79,7 @@ public class RegisterProgressFragment extends Fragment {
public void onClick(View arg0) {
Intent i = new Intent(getActivity(), AddSites.class);
startActivity(i);
getActivity().finish();
}
});
@ -111,10 +112,12 @@ public class RegisterProgressFragment extends Fragment {
i.putExtra("username", username);
i.putExtra("password", password);
startActivity(i);
getActivity().finish();
}
} else {
Toast.makeText(getActivity(), extractErrorMessage(response), Toast.LENGTH_LONG).show();
startActivity(new Intent(getActivity(), Login.class));
getActivity().finish();
}
}