Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
413950f7
Commit
413950f7
authored
10 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Show newly subscribed forum after subscribing. Dev task #86.
parent
cc9e1ec3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
briar-android/src/org/briarproject/android/groups/ConfigureGroupActivity.java
+20
-5
20 additions, 5 deletions
...g/briarproject/android/groups/ConfigureGroupActivity.java
with
20 additions
and
5 deletions
briar-android/src/org/briarproject/android/groups/ConfigureGroupActivity.java
+
20
−
5
View file @
413950f7
...
...
@@ -45,6 +45,7 @@ SelectContactsDialog.Listener {
private
static
final
Logger
LOG
=
Logger
.
getLogger
(
ConfigureGroupActivity
.
class
.
getName
());
private
String
groupName
=
null
;
private
CheckBox
subscribeCheckBox
=
null
;
private
RadioGroup
radioGroup
=
null
;
private
RadioButton
visibleToAll
=
null
,
visibleToSome
=
null
;
...
...
@@ -68,12 +69,12 @@ SelectContactsDialog.Listener {
byte
[]
b
=
i
.
getByteArrayExtra
(
"briar.GROUP_ID"
);
if
(
b
==
null
)
throw
new
IllegalStateException
();
groupId
=
new
GroupId
(
b
);
String
n
ame
=
i
.
getStringExtra
(
"briar.GROUP_NAME"
);
if
(
n
ame
==
null
)
throw
new
IllegalStateException
();
setTitle
(
n
ame
);
groupN
ame
=
i
.
getStringExtra
(
"briar.GROUP_NAME"
);
if
(
groupN
ame
==
null
)
throw
new
IllegalStateException
();
setTitle
(
groupN
ame
);
b
=
i
.
getByteArrayExtra
(
"briar.GROUP_SALT"
);
if
(
b
==
null
)
throw
new
IllegalStateException
();
group
=
new
Group
(
groupId
,
n
ame
,
b
);
group
=
new
Group
(
groupId
,
groupN
ame
,
b
);
subscribed
=
i
.
getBooleanExtra
(
"briar.SUBSCRIBED"
,
false
);
boolean
all
=
i
.
getBooleanExtra
(
"briar.VISIBLE_TO_ALL"
,
false
);
...
...
@@ -210,7 +211,21 @@ SelectContactsDialog.Listener {
if
(
LOG
.
isLoggable
(
WARNING
))
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
();
}
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment