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
a76fa3d2
Commit
a76fa3d2
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#17195: Use account order to determine selected account at startup
parent
e32a1738
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/com/savoirfairelinux/sflphone/utils/AccountSelectionButton.java
+24
-8
24 additions, 8 deletions
...voirfairelinux/sflphone/utils/AccountSelectionButton.java
with
24 additions
and
8 deletions
src/com/savoirfairelinux/sflphone/utils/AccountSelectionButton.java
+
24
−
8
View file @
a76fa3d2
...
...
@@ -65,17 +65,33 @@ public class AccountSelectionButton extends Button
mContext
=
context
;
final
AccountSelectionButton
b
=
this
;
ArrayList
<
String
>
list
=
getAccountList
();
if
(
list
.
size
()
>
1
)
{
list
.
remove
(
"IP2IP"
);
setText
(
list
.
get
(
0
));
}
else
{
setText
(
"IP2IP"
);
}
setOnClickListener
(
new
View
.
OnClickListener
()
{
public
void
onClick
(
View
v
)
{
try
{
ArrayList
<
String
>
list
=
(
ArrayList
<
String
>)
mService
.
getAccountList
();
AccountSelectionDialog
accountSelectionDialog
=
new
AccountSelectionDialog
(
mContext
,
list
,
b
);
accountSelectionDialog
.
show
();
}
catch
(
RemoteException
e
)
{
Log
.
e
(
TAG
,
"Remote exception"
,
e
);
}
ArrayList
<
String
>
list
=
getAccountList
();
AccountSelectionDialog
accountSelectionDialog
=
new
AccountSelectionDialog
(
mContext
,
list
,
b
);
accountSelectionDialog
.
show
();
}
});
}
public
ArrayList
<
String
>
getAccountList
()
{
ArrayList
<
String
>
list
=
null
;
try
{
list
=
(
ArrayList
<
String
>)
mService
.
getAccountList
();
}
catch
(
RemoteException
e
)
{
Log
.
e
(
TAG
,
"Remote exception"
,
e
);
}
return
list
;
}
}
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