Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created September 22, 2015 20:54
Show Gist options
  • Save orhanobut/38facfa03941324b125e to your computer and use it in GitHub Desktop.
Save orhanobut/38facfa03941324b125e to your computer and use it in GitHub Desktop.
public class LoginActivity extends Activity
implements LoginFragment.LoginListener {
@Override public void onLogin() {
login(new Callback<User>() {
@Override public void onSuccess(User user){
EventBus.getDefault().post(new UserEvent(user));
}
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment