Show notifications when messages are received. Dev task #30.

This commit is contained in:
akwizgran
2014-02-05 17:19:24 +00:00
parent 4b05b2acf9
commit f17a760805
12 changed files with 87 additions and 11 deletions

View File

@@ -185,7 +185,6 @@ implements EventListener, OnClickListener, OnItemClickListener {
super.onActivityResult(request, result, data);
if(request == REQUEST_READ_MESSAGE && result == RESULT_PREV_NEXT) {
int position = data.getIntExtra("briar.POSITION", -1);
if(position == -1) throw new IllegalStateException();
if(position >= 0 && position < adapter.getCount())
displayMessage(position);
}