1212 * limitations under the License.
1313 */
1414
15- package com .firebase .uidemo .database ;
15+ package com .firebase .uidemo .database . realtime ;
1616
1717import android .arch .lifecycle .LifecycleRegistry ;
1818import android .arch .lifecycle .LifecycleRegistryOwner ;
3030
3131import com .firebase .ui .database .FirebaseRecyclerAdapter ;
3232import com .firebase .uidemo .R ;
33+ import com .firebase .uidemo .database .ChatHolder ;
3334import com .firebase .uidemo .util .SignInResultNotifier ;
3435import com .google .android .gms .tasks .OnSuccessListener ;
3536import com .google .firebase .auth .AuthResult ;
@@ -64,9 +65,9 @@ protected void onCreate(Bundle savedInstanceState) {
6465 mAuth = FirebaseAuth .getInstance ();
6566 mAuth .addAuthStateListener (this );
6667
67- mSendButton = ( Button ) findViewById (R .id .sendButton );
68- mMessageEdit = ( EditText ) findViewById (R .id .messageEdit );
69- mEmptyListMessage = ( TextView ) findViewById (R .id .emptyTextView );
68+ mSendButton = findViewById (R .id .sendButton );
69+ mMessageEdit = findViewById (R .id .messageEdit );
70+ mEmptyListMessage = findViewById (R .id .emptyTextView );
7071
7172 mChatRef = FirebaseDatabase .getInstance ().getReference ().child ("chats" );
7273
@@ -75,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
7576 mManager = new LinearLayoutManager (this );
7677 mManager .setReverseLayout (false );
7778
78- mMessages = ( RecyclerView ) findViewById (R .id .messagesList );
79+ mMessages = findViewById (R .id .messagesList );
7980 mMessages .setHasFixedSize (true );
8081 mMessages .setLayoutManager (mManager );
8182
0 commit comments