-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
db sample cleanup #545
Conversation
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
There was a problem hiding this 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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
@SUPERCILEX these look like good simplifications to me. Gonna squash and merge. |
@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.