mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Show newly subscribed forum after subscribing. Dev task #86.
This commit is contained in:
@@ -45,6 +45,7 @@ SelectContactsDialog.Listener {
|
|||||||
private static final Logger LOG =
|
private static final Logger LOG =
|
||||||
Logger.getLogger(ConfigureGroupActivity.class.getName());
|
Logger.getLogger(ConfigureGroupActivity.class.getName());
|
||||||
|
|
||||||
|
private String groupName = null;
|
||||||
private CheckBox subscribeCheckBox = null;
|
private CheckBox subscribeCheckBox = null;
|
||||||
private RadioGroup radioGroup = null;
|
private RadioGroup radioGroup = null;
|
||||||
private RadioButton visibleToAll = null, visibleToSome = null;
|
private RadioButton visibleToAll = null, visibleToSome = null;
|
||||||
@@ -68,12 +69,12 @@ SelectContactsDialog.Listener {
|
|||||||
byte[] b = i.getByteArrayExtra("briar.GROUP_ID");
|
byte[] b = i.getByteArrayExtra("briar.GROUP_ID");
|
||||||
if(b == null) throw new IllegalStateException();
|
if(b == null) throw new IllegalStateException();
|
||||||
groupId = new GroupId(b);
|
groupId = new GroupId(b);
|
||||||
String name = i.getStringExtra("briar.GROUP_NAME");
|
groupName = i.getStringExtra("briar.GROUP_NAME");
|
||||||
if(name == null) throw new IllegalStateException();
|
if(groupName == null) throw new IllegalStateException();
|
||||||
setTitle(name);
|
setTitle(groupName);
|
||||||
b = i.getByteArrayExtra("briar.GROUP_SALT");
|
b = i.getByteArrayExtra("briar.GROUP_SALT");
|
||||||
if(b == null) throw new IllegalStateException();
|
if(b == null) throw new IllegalStateException();
|
||||||
group = new Group(groupId, name, b);
|
group = new Group(groupId, groupName, b);
|
||||||
subscribed = i.getBooleanExtra("briar.SUBSCRIBED", false);
|
subscribed = i.getBooleanExtra("briar.SUBSCRIBED", false);
|
||||||
boolean all = i.getBooleanExtra("briar.VISIBLE_TO_ALL", false);
|
boolean all = i.getBooleanExtra("briar.VISIBLE_TO_ALL", false);
|
||||||
|
|
||||||
@@ -210,7 +211,21 @@ SelectContactsDialog.Listener {
|
|||||||
if(LOG.isLoggable(WARNING))
|
if(LOG.isLoggable(WARNING))
|
||||||
LOG.log(WARNING, e.toString(), e);
|
LOG.log(WARNING, e.toString(), e);
|
||||||
}
|
}
|
||||||
finishOnUiThread();
|
if(subscribe) showGroup();
|
||||||
|
else finishOnUiThread();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void showGroup() {
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
public void run() {
|
||||||
|
Intent i = new Intent(ConfigureGroupActivity.this,
|
||||||
|
GroupActivity.class);
|
||||||
|
i.putExtra("briar.GROUP_ID", groupId.getBytes());
|
||||||
|
i.putExtra("briar.GROUP_NAME", groupName);
|
||||||
|
startActivity(i);
|
||||||
|
finish();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user