@Override
public int getSubmitButtonId() {
return R.id.login_submit;</BUG>
}
<BUG>@Override
public void onPostResponse(Context context, LoginRequest.Result result) {
if(dialog != null){</BUG>
dialog.dismiss();
}
<BUG>if(result.id > 0){
startActivity(new Intent(Demo1Activity.this, Demo2Activity.class));
}else{
Toast.makeText(context, "login failed", Toast.LENGTH_LONG).show();</BUG>
}

@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
Jujuj.getInstance().inject(this, new LoginRequest(this));
