mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fix registration regression bug caused by #151
This commit is contained in:
parent
b245754710
commit
0d71c8ac59
2 changed files with 5 additions and 1 deletions
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue