Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected Adapter getAdapter() {
- return (mRecyclerView != null ? mRecyclerView.getAdapter() : null);
- }
- //mesma coisa que:
- RecyclerView mRecyclerView = null;
- protected Adapter getAdapter() {
- return (mRecyclerView != null ? mRecyclerView.getAdapter() : null);
- }
- //se o troco ta null, é lógico que vai retornar nulo, não precisa verificar
Advertisement
Add Comment
Please, Sign In to add comment