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
de820078
Commit
de820078
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#17013: No need of switch case in SipCall.setState()
parent
d1976533
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/client/SipCall.java
+3
-32
3 additions, 32 deletions
src/com/savoirfairelinux/sflphone/client/SipCall.java
with
3 additions
and
32 deletions
src/com/savoirfairelinux/sflphone/client/SipCall.java
+
3
−
32
View file @
de820078
...
...
@@ -206,41 +206,12 @@ public class SipCall
public
void
setCallState
(
int
callState
)
{
mCallInfo
.
mCallState
=
callState
;
// Check if this call is associated to a view in CallElementList
if
(
mRowView
==
null
)
return
;
String
state
;
switch
(
mCallInfo
.
mCallState
)
{
case
CALL_STATE_INCOMING:
state
=
"INCOMING"
;
break
;
case
CALL_STATE_RINGING:
state
=
"RINGING"
;
break
;
case
CALL_STATE_CURRENT:
state
=
"CURRENT"
;
break
;
case
CALL_STATE_HUNGUP:
state
=
"HUNGUP"
;
break
;
case
CALL_STATE_BUSY:
state
=
"BUSY"
;
break
;
case
CALL_STATE_FAILURE:
state
=
"FAILURE"
;
break
;
case
CALL_STATE_HOLD:
state
=
"HOLD"
;
break
;
case
CALL_STATE_UNHOLD:
state
=
"UNHOLD"
;
break
;
default
:
state
=
"NULL"
;
}
// Update the state to the view
CallElementView
entryView
=
(
CallElementView
)
mRowView
.
getTag
();
final
String
CURRENT_STATE_LABEL
=
" CURRENT STATE: "
;
entryView
.
state
.
setText
(
CURRENT_STATE_LABEL
+
getCallStateString
());
...
...
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