Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Dehm
briar
Commits
fc626d09
Verified
Commit
fc626d09
authored
Sep 13, 2018
by
Torsten Grote
Browse files
Only create one private group when pressing enter
parent
30f87e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
briar-android/src/main/java/org/briarproject/briar/android/privategroup/creation/CreateGroupFragment.java
View file @
fc626d09
...
...
@@ -19,6 +19,8 @@ import org.briarproject.briar.android.fragment.BaseFragment;
import
static
android
.
view
.
View
.
GONE
;
import
static
android
.
view
.
View
.
VISIBLE
;
import
static
android
.
view
.
inputmethod
.
EditorInfo
.
IME_ACTION_DONE
;
import
static
org
.
briarproject
.
briar
.
android
.
util
.
UiUtils
.
enterPressed
;
import
static
org
.
briarproject
.
briar
.
api
.
privategroup
.
PrivateGroupConstants
.
MAX_GROUP_NAME_LENGTH
;
public
class
CreateGroupFragment
extends
BaseFragment
{
...
...
@@ -62,8 +64,11 @@ public class CreateGroupFragment extends BaseFragment {
}
});
nameEntry
.
setOnEditorActionListener
((
v1
,
actionId
,
e
)
->
{
createGroup
();
return
true
;
if
(
actionId
==
IME_ACTION_DONE
||
enterPressed
(
actionId
,
e
))
{
createGroup
();
return
true
;
}
return
false
;
});
nameLayout
=
v
.
findViewById
(
R
.
id
.
nameLayout
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment