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
48240e8f
Commit
48240e8f
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#16987: Fix Hangup action when call is in state NULL in CallActivity
parent
cb66fa40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/com/savoirfairelinux/sflphone/client/CallActivity.java
+3
-1
3 additions, 1 deletion
src/com/savoirfairelinux/sflphone/client/CallActivity.java
src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
+5
-2
5 additions, 2 deletions
src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
with
8 additions
and
3 deletions
src/com/savoirfairelinux/sflphone/client/CallActivity.java
+
3
−
1
View file @
48240e8f
...
...
@@ -127,7 +127,9 @@ public class CallActivity extends Activity implements OnClickListener
mCall
.
notifyServiceAnswer
(
service
);
break
;
case
R
.
id
.
buttonhangup
:
if
(
mCall
.
getCallStateInt
()
==
SipCall
.
CALL_STATE_CURRENT
)
{
if
((
mCall
.
getCallStateInt
()
==
SipCall
.
CALL_STATE_NONE
)
||
(
mCall
.
getCallStateInt
()
==
SipCall
.
CALL_STATE_CURRENT
))
{
mCall
.
notifyServiceHangup
(
service
);
finish
();
}
...
...
This diff is collapsed.
Click to expand it.
src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
+
5
−
2
View file @
48240e8f
...
...
@@ -85,7 +85,6 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC
private
String
incomingCallID
=
""
;
private
static
final
int
REQUEST_CODE_PREFERENCES
=
1
;
ImageButton
buttonCall
,
buttonHangup
;
Button
buttonService
;
static
Animation
animation
;
ContactListFragment
mContactListFragment
;
CallElementList
mCallElementList
;
...
...
@@ -95,6 +94,10 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC
public
AccountList
mAccountList
=
new
AccountList
();
public
CallList
mCallList
=
new
CallList
(
this
);
private
static
final
int
ACTION_BAR_TAB_CONTACT
=
0
;
private
static
final
int
ACTION_BAR_TAB_CALL
=
1
;
private
static
final
int
ACTION_BAR_TAB_HISTORY
=
2
;
/**
* The {@link ViewPager} that will host the section contents.
*/
...
...
@@ -154,7 +157,7 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC
actionBar
.
addTab
(
actionBar
.
newTab
().
setIcon
(
icon_res_id
[
i
]).
setText
(
mSectionsPagerAdapter
.
getPageTitle
(
i
)).
setTabListener
(
this
));
}
actionBar
.
setSelectedNavigationItem
(
1
);
actionBar
.
setSelectedNavigationItem
(
ACTION_BAR_TAB_CALL
);
buttonCall
=
(
ImageButton
)
findViewById
(
R
.
id
.
buttonCall
);
buttonHangup
=
(
ImageButton
)
findViewById
(
R
.
id
.
buttonHangUp
);
...
...
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