Created
February 21, 2017 01:15
-
-
Save oznus/d012487b1628c397c5ba7b0b5e084bbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
ChatAdapter chatAdapter; | |
RecyclerView recyclerView; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
recyclerView = findViewById(R.id.recyclerView); | |
chatAdapter = new ChatAdapter(this); | |
recyclerView.setAdapter(chatAdapter); | |
} | |
@Override | |
protected void onStop() { | |
super.onStop(); | |
chatAdapter = null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment