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
0007dee0
Commit
0007dee0
authored
12 years ago
by
Emeric Vigier
Browse files
Options
Downloads
Patches
Plain Diff
#15248: instantiate ManagerImpl instead of Manager in SipService
parent
fae29bd3
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/service/SipService.java
+13
-7
13 additions, 7 deletions
src/com/savoirfairelinux/sflphone/service/SipService.java
with
13 additions
and
7 deletions
src/com/savoirfairelinux/sflphone/service/SipService.java
+
13
−
7
View file @
0007dee0
...
...
@@ -36,7 +36,7 @@ import android.os.Message;
import
android.util.Log
;
import
android.widget.Toast
;
import
com.savoirfairelinux.sflphone.
client
.Manager
;
import
com.savoirfairelinux.sflphone.
service
.Manager
Impl
;
import
com.savoirfairelinux.sflphone.client.SFLphoneApplication
;
import
com.savoirfairelinux.sflphone.service.ISipService
;
...
...
@@ -50,7 +50,8 @@ public class SipService extends Service {
private
SipServiceExecutor
mExecutor
;
private
static
HandlerThread
executorThread
;
private
CallManagerJNI
callManagerJNI
;
private
Manager
manager
;
private
CallManagerCallBack
callManagerCallBack
;
private
ManagerImpl
managerImpl
;
private
boolean
isPjSipStackStarted
=
false
;
/* Implement public interface for the service */
...
...
@@ -234,14 +235,19 @@ public class SipService extends Service {
Log
.
e
(
TAG
,
"Problem with the current Pj stack..."
,
e
);
}
manager
=
new
Manager
();
Log
.
i
(
TAG
,
"SipService.ManagerImpl::instance() = "
+
Manager
.
managerImpl
);
/* get unique instance of managerImpl */
managerImpl
=
SFLPhoneservice
.
instance
();
Log
.
i
(
TAG
,
"ManagerImpl::instance() = "
+
managerImpl
);
/* set static AppPath before calling manager.init */
Manager
.
managerImpl
.
setPath
(
sflphoneApp
.
getAppPath
());
callManagerJNI
=
Manager
.
c
all
m
anagerJNI
;
managerImpl
.
setPath
(
sflphoneApp
.
getAppPath
());
callManagerJNI
=
new
C
all
M
anagerJNI
()
;
Log
.
i
(
TAG
,
"startPjSipStack() callManagerJNI = "
+
callManagerJNI
);
Manager
.
managerImpl
.
init
(
""
);
callManagerCallBack
=
new
CallManagerCallBack
();
SFLPhoneservice
.
setCallbackObject
(
callManagerCallBack
);
Log
.
i
(
TAG
,
"callManagerCallBack = "
+
callManagerCallBack
);
managerImpl
.
init
(
""
);
return
;
}
...
...
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