Created
September 22, 2015 18:23
-
-
Save orhanobut/31e3080af166fc8f06a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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