Skip to content

Instantly share code, notes, and snippets.

@orhanobut
Created September 22, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orhanobut/31e3080af166fc8f06a3 to your computer and use it in GitHub Desktop.
Save orhanobut/31e3080af166fc8f06a3 to your computer and use it in GitHub Desktop.
public class ProductListFragment extends Fragment {
private String uuid;
@Override public void onCreateView(...) {
listener.onRefreshData();
}
public void onEvent(ProductListSuccessEvent event) {
if (!TextUtils.equals(uuid, event.uuid) {
return;
}
doSomething(event);
}
public void onEvent(ProductListFailEvent event) {
//same here
doSomething();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment