mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Update unread message count when returning from conversation/group.
Fixes bug #42.
This commit is contained in:
@@ -19,7 +19,7 @@ import android.os.IBinder;
|
||||
|
||||
public class BriarActivity extends RoboFragmentActivity {
|
||||
|
||||
private static final int REQUEST_PASSWORD = 1;
|
||||
public static final int REQUEST_PASSWORD = 1;
|
||||
|
||||
private static final Logger LOG =
|
||||
Logger.getLogger(BriarActivity.class.getName());
|
||||
|
||||
@@ -118,6 +118,10 @@ implements EventListener, OnClickListener, OnItemClickListener {
|
||||
if(b == null) throw new IllegalStateException();
|
||||
localAuthorId = new AuthorId(b);
|
||||
|
||||
Intent data = new Intent();
|
||||
data.putExtra("briar.CONTACT_ID", id);
|
||||
setResult(RESULT_OK, data);
|
||||
|
||||
LinearLayout layout = new LinearLayout(this);
|
||||
layout.setLayoutParams(MATCH_MATCH);
|
||||
layout.setOrientation(VERTICAL);
|
||||
@@ -297,11 +301,6 @@ implements EventListener, OnClickListener, OnItemClickListener {
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
db.removeListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if(isFinishing()) markMessagesRead();
|
||||
}
|
||||
|
||||
|
||||
@@ -232,11 +232,6 @@ OnClickListener, OnItemClickListener {
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
db.removeListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if(isFinishing()) markMessagesRead();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user