Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public class MainActivity extends AppCompatActivity {
  2.  
  3. ChatAdapter chatAdapter;
  4. RecyclerView recyclerView;
  5.  
  6. @Override
  7. protected void onCreate(Bundle savedInstanceState) {
  8. super.onCreate(savedInstanceState);
  9.  
  10. setContentView(R.layout.activity_main);
  11.  
  12. recyclerView = findViewById(R.id.recyclerView);
  13. chatAdapter = new ChatAdapter(this);
  14. recyclerView.setAdapter(chatAdapter);
  15.  
  16. }
  17.  
  18. @Override
  19. protected void onStop() {
  20. super.onStop();
  21.  
  22. chatAdapter = null;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement