Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
savoirfairelinux
jami-client-android
Commits
f126dade
Commit
f126dade
authored
11 years ago
by
Alexandre Lision
Browse files
Options
Downloads
Patches
Plain Diff
* Added shortcut wizard for dev
parent
67817199
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
res/layout/frag_account_creation.xml
+7
-0
7 additions, 0 deletions
res/layout/frag_account_creation.xml
src/com/savoirfairelinux/sflphone/fragments/AccountCreationFragment.java
+28
-4
28 additions, 4 deletions
...airelinux/sflphone/fragments/AccountCreationFragment.java
with
35 additions
and
4 deletions
res/layout/frag_account_creation.xml
+
7
−
0
View file @
f126dade
...
@@ -59,6 +59,13 @@
...
@@ -59,6 +59,13 @@
android:paddingLeft=
"32dp"
android:paddingLeft=
"32dp"
android:paddingRight=
"32dp"
android:paddingRight=
"32dp"
android:text=
"@string/action_create"
/>
android:text=
"@string/action_create"
/>
<Button
android:id=
"@+id/dev_account"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Dev Account"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</ScrollView>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/com/savoirfairelinux/sflphone/fragments/AccountCreationFragment.java
+
28
−
4
View file @
f126dade
...
@@ -55,9 +55,36 @@ public class AccountCreationFragment extends Fragment {
...
@@ -55,9 +55,36 @@ public class AccountCreationFragment extends Fragment {
inflatedView
.
findViewById
(
R
.
id
.
create_button
).
setOnClickListener
(
new
View
.
OnClickListener
()
{
inflatedView
.
findViewById
(
R
.
id
.
create_button
).
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
mAlias
=
mAliasView
.
getText
().
toString
();
mHostname
=
mHostnameView
.
getText
().
toString
();
mUsername
=
mUsernameView
.
getText
().
toString
();
mPassword
=
mPasswordView
.
getText
().
toString
();
attemptCreation
();
attemptCreation
();
}
}
});
});
inflatedView
.
findViewById
(
R
.
id
.
dev_account
).
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
createDevAccount
();
}
private
void
createDevAccount
()
{
mUsername
=
mUsernameView
.
getText
().
toString
();
if
(
TextUtils
.
isEmpty
(
mUsername
))
{
mUsernameView
.
setError
(
getString
(
R
.
string
.
error_field_required
));
mUsernameView
.
requestFocus
();
return
;
}
else
{
mAlias
=
mUsername
;
mHostname
=
"192.95.9.63"
;
mPassword
=
"sfl_u"
+
mUsername
;
attemptCreation
();
}
}
});
return
inflatedView
;
return
inflatedView
;
}
}
...
@@ -84,10 +111,7 @@ public class AccountCreationFragment extends Fragment {
...
@@ -84,10 +111,7 @@ public class AccountCreationFragment extends Fragment {
mPasswordView
.
setError
(
null
);
mPasswordView
.
setError
(
null
);
// Store values at the time of the login attempt.
// Store values at the time of the login attempt.
mAlias
=
mAliasView
.
getText
().
toString
();
mHostname
=
mHostnameView
.
getText
().
toString
();
mUsername
=
mUsernameView
.
getText
().
toString
();
mPassword
=
mPasswordView
.
getText
().
toString
();
boolean
cancel
=
false
;
boolean
cancel
=
false
;
View
focusView
=
null
;
View
focusView
=
null
;
...
...
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