Skip to content

db sample cleanup #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 31, 2017
Merged

db sample cleanup #545

merged 5 commits into from
Jan 31, 2017

Conversation

SUPERCILEX
Copy link
Collaborator

@samtstern Aaaaaaaaaahhh!!! I'm trying to move changes from #544 that aren't directly related to that PR away from it to simplify the diff.

Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Copy link
Collaborator Author

@SUPERCILEX SUPERCILEX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samtstern @puf do you guys think these are reasonable changes?

@@ -60,8 +51,8 @@

private RecyclerView mMessages;
private LinearLayoutManager mManager;
private FirebaseRecyclerAdapter<Chat, ChatHolder> mRecyclerViewAdapter;
private View mEmptyListView;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusing name: empty listView or emptyList view.

@@ -60,8 +51,8 @@

private RecyclerView mMessages;
private LinearLayoutManager mManager;
private FirebaseRecyclerAdapter<Chat, ChatHolder> mRecyclerViewAdapter;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debatable: the documentation just uses mAdapter.

// Sending only allowed when signed in
mSendButton.setEnabled(isSignedIn());
mMessageEdit.setEnabled(isSignedIn());
}

public static class Chat {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting these in separate files makes the ChatActivity easier to understand since it doesn't contain the java bean or holder.

…-cleanup

# Conflicts:
#	app/src/main/java/com/firebase/uidemo/database/ChatActivity.java
#	app/src/main/res/values/strings.xml
@samtstern
Copy link
Contributor

@SUPERCILEX these look like good simplifications to me. Gonna squash and merge.

@samtstern samtstern merged commit c91cc64 into firebase:version-1.2.0-dev Jan 31, 2017
@SUPERCILEX SUPERCILEX deleted the sample-cleanup branch January 31, 2017 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants