Commit b8190512 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

jni: rename Ringservice to JamiService

Change-Id: Ib20206f49983199778df2c924479098dbf1f16f9
parent e40c6c61
......@@ -201,7 +201,7 @@ ${CXX} --shared \
-Wno-unused-function \
-Wno-unused-parameter \
-Wl,-Bsymbolic \
${JNIDIR}/ring_wrapper.cpp \
${JNIDIR}/jami_wrapper.cpp \
${DAEMON_BUILD_DIR}/src/.libs/libring.a \
-isystem ${DAEMON_DIR}/contrib/${TARGET}/include \
-I${DAEMON_DIR}/src \
......
......@@ -106,8 +106,6 @@ public class JamiAccountSummaryFragment extends BaseSupportFragment<JamiAccountS
private static final String FRAGMENT_DIALOG_BACKUP = TAG + ".dialog.backup";
private static final int WRITE_REQUEST_CODE = 43;
private static final int SCROLL_DIRECTION_UP = -1;
public static final String ACCOUNT_ID_KEY = AccountEditionFragment.class.getCanonicalName() + "accountid";
private static final int SETTINGS_ACCOUNT = 0;
private static final int SETTINGS_MEDIA = 1;
private static final int SETTINGS_SYSTEM = 2;
......@@ -710,7 +708,7 @@ public class JamiAccountSummaryFragment extends BaseSupportFragment<JamiAccountS
private Fragment fragmentWithBundle(Fragment result, String accountId) {
Bundle args = new Bundle();
args.putString(ACCOUNT_ID_KEY, accountId);
args.putString(AccountEditionFragment.ACCOUNT_ID_KEY, accountId);
result.setArguments(args);
return result;
}
......@@ -744,7 +742,7 @@ public class JamiAccountSummaryFragment extends BaseSupportFragment<JamiAccountS
public void goToBlackList(String accountId) {
BlockListFragment blockListFragment = new BlockListFragment();
Bundle args = new Bundle();
args.putString(ACCOUNT_ID_KEY, accountId);
args.putString(AccountEditionFragment.ACCOUNT_ID_KEY, accountId);
blockListFragment.setArguments(args);
changeFragment(blockListFragment, BlockListFragment.TAG);
}
......
......@@ -65,7 +65,6 @@ import javax.inject.Named;
import cx.ring.BuildConfig;
import cx.ring.R;
import cx.ring.views.AvatarFactory;
import net.jami.daemon.Ringservice;
import cx.ring.dependencyinjection.DaggerJamiInjectionComponent;
import cx.ring.dependencyinjection.JamiInjectionComponent;
import cx.ring.dependencyinjection.JamiInjectionModule;
......@@ -179,10 +178,10 @@ public abstract class JamiApplication extends Application {
if (mPreferencesService.getSettings().isAllowPushNotifications()) {
String token = getPushToken();
if (token != null) {
Ringservice.setPushNotificationToken(token);
JamiService.setPushNotificationToken(token);
}
} else {
Ringservice.setPushNotificationToken("");
JamiService.setPushNotificationToken("");
}
Intent intent = new Intent(DRING_CONNECTION_CHANGED);
......
......@@ -175,7 +175,7 @@ public class CallActivity extends AppCompatActivity {
}
private void hideSystemUI() {
KeyboardVisibilityManager.hideKeyboard(this, 0);
KeyboardVisibilityManager.hideKeyboard(this);
if (mMainView != null) {
mMainView.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LOW_PROFILE
......
......@@ -75,6 +75,9 @@ import cx.ring.interfaces.Colorable;
import net.jami.model.Account;
import net.jami.model.AccountConfig;
import cx.ring.service.DRingService;
import net.jami.model.Contact;
import net.jami.model.Conversation;
import net.jami.services.AccountService;
import net.jami.services.NotificationService;
import cx.ring.settings.SettingsFragment;
......@@ -778,7 +781,7 @@ public class HomeActivity extends AppCompatActivity implements BottomNavigationV
List<Future<Bitmap>> futureIcons = new ArrayList<>(Math.min(conversations.size(),maxCount));
for (Conversation conversation : conversations) {
CallContact contact = conversation.getContact();
Contact contact = conversation.getContact();
futureIcons.add(AvatarFactory.getBitmapAvatar(this, contact, targetSize)
.subscribeOn(Schedulers.computation())
.toFuture());
......@@ -789,7 +792,7 @@ public class HomeActivity extends AppCompatActivity implements BottomNavigationV
i = 0;
for (Conversation conversation : conversations) {
CallContact contact = conversation.getContact();
Contact contact = conversation.getContact();
IconCompat icon = null;
try {
icon = IconCompat.createWithBitmap(futureIcons.get(i).get());
......
......@@ -60,7 +60,6 @@ import cx.ring.service.DRingService;
import cx.ring.service.JamiJobService;
import net.jami.services.AccountService;
import net.jami.services.CallService;
import net.jami.services.ConferenceService;
import cx.ring.services.ContactServiceImpl;
import net.jami.services.DaemonService;
import cx.ring.services.DataTransferService;
......@@ -151,8 +150,6 @@ public interface JamiInjectionComponent {
void inject(CallService service);
void inject(ConferenceService service);
void inject(AccountService service);
void inject(HardwareService service);
......
......@@ -86,6 +86,17 @@ import androidx.percentlayout.widget.PercentFrameLayout;
import com.rodolfonavalon.shaperipplelibrary.model.Circle;
import net.jami.call.CallPresenter;
import net.jami.call.CallView;
import net.jami.daemon.JamiService;
import net.jami.model.Call;
import net.jami.model.Conference;
import net.jami.model.Contact;
import net.jami.services.DeviceRuntimeService;
import net.jami.services.HardwareService;
import net.jami.services.NotificationService;
import net.jami.utils.StringUtils;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
......@@ -99,32 +110,22 @@ import javax.inject.Inject;
import cx.ring.R;
import cx.ring.adapters.ConfParticipantAdapter;
import cx.ring.application.JamiApplication;
import net.jami.call.CallPresenter;
import net.jami.call.CallView;
import cx.ring.client.CallActivity;
import cx.ring.client.ContactDetailsActivity;
import cx.ring.client.ConversationActivity;
import cx.ring.client.ConversationSelectionActivity;
import cx.ring.client.HomeActivity;
import net.jami.daemon.Ringservice;
import cx.ring.databinding.FragCallBinding;
import cx.ring.databinding.ItemParticipantLabelBinding;
import net.jami.model.Contact;
import net.jami.model.Conference;
import net.jami.model.Call;
import cx.ring.mvp.BaseSupportFragment;
import cx.ring.plugins.RecyclerPicker.RecyclerPicker;
import cx.ring.plugins.RecyclerPicker.RecyclerPickerLayoutManager;
import cx.ring.service.DRingService;
import net.jami.services.DeviceRuntimeService;
import net.jami.services.HardwareService;
import net.jami.services.NotificationService;
import cx.ring.utils.ActionHelper;
import cx.ring.utils.ContentUriHandler;
import cx.ring.utils.ConversationPath;
import cx.ring.utils.DeviceUtils;
import cx.ring.utils.MediaButtonsHelper;
import net.jami.utils.StringUtils;
import cx.ring.views.AvatarDrawable;
import io.reactivex.disposables.CompositeDisposable;
......@@ -284,7 +285,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
getString(R.string.action_call_hangup),
PendingIntent.getService(context, new Random().nextInt(),
new Intent(DRingService.ACTION_CALL_END)
.setClass(context, DRingService.class)
.setClass(context, JamiService.class)
.putExtra(NotificationService.KEY_CALL_ID, callId), PendingIntent.FLAG_ONE_SHOT)));
paramBuilder.setActions(actions);
try {
......@@ -912,7 +913,9 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
@Override
public void displayDialPadKeyboard() {
KeyboardVisibilityManager.showKeyboard(getActivity(), binding.dialpadEditText, InputMethodManager.SHOW_FORCED);
binding.dialpadEditText.requestFocus();
InputMethodManager imm = (InputMethodManager) binding.dialpadEditText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
}
@Override
......@@ -1398,11 +1401,11 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
@Override
public void toggleCallMediaHandler(String id, String callId, boolean toggle) {
Ringservice.toggleCallMediaHandler(id, callId, toggle);
JamiService.toggleCallMediaHandler(id, callId, toggle);
}
public Map<String, String> getCallMediaHandlerDetails(String id) {
return Ringservice.getCallMediaHandlerDetails(id).toNative();
return JamiService.getCallMediaHandlerDetails(id).toNative();
}
@Override
......@@ -1421,7 +1424,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
}
public boolean displayPluginsButton() {
return Ringservice.getPluginsEnabled() && Ringservice.getCallMediaHandlers().size() > 0;
return JamiService.getPluginsEnabled() && JamiService.getCallMediaHandlers().size() > 0;
}
@Override
......@@ -1475,7 +1478,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
// Create callMediaHandlers and videoPluginsItems in a lazy manner
if (pluginsModeFirst) {
// Init
callMediaHandlers = Ringservice.getCallMediaHandlers();
callMediaHandlers = JamiService.getCallMediaHandlers();
List<Drawable> videoPluginsItems = new ArrayList<>(callMediaHandlers.size() + 1);
videoPluginsItems.add(context.getDrawable(R.drawable.baseline_cancel_24));
......
......@@ -87,6 +87,8 @@ import net.jami.conversation.ConversationPresenter;
import net.jami.conversation.ConversationView;
import cx.ring.databinding.FragConversationBinding;
import cx.ring.interfaces.Colorable;
import net.jami.daemon.JamiService;
import net.jami.model.Account;
import net.jami.model.Contact;
import net.jami.model.Conversation;
......@@ -419,26 +421,21 @@ public class ConversationFragment extends BaseSupportFragment<ConversationPresen
PopupMenu popup = new PopupMenu(context, v);
popup.inflate(R.menu.conversation_share_actions);
popup.setOnMenuItemClickListener(item -> {
switch(item.getItemId()) {
case R.id.conv_send_audio:
sendAudioMessage();
break;
case R.id.conv_send_video:
sendVideoMessage();
break;
case R.id.conv_send_file:
presenter.selectFile();
break;
case R.id.conv_share_location:
shareLocation();
break;
case R.id.chat_plugins:
presenter.showPluginListHandlers();
break;
int itemId = item.getItemId();
if (itemId == R.id.conv_send_audio) {
sendAudioMessage();
} else if (itemId == R.id.conv_send_video) {
sendVideoMessage();
} else if (itemId == R.id.conv_send_file) {
presenter.selectFile();
} else if (itemId == R.id.conv_share_location) {
shareLocation();
} else if (itemId == R.id.chat_plugins) {
presenter.showPluginListHandlers();
}
return false;
});
popup.getMenu().findItem(R.id.chat_plugins).setVisible(Ringservice.getPluginsEnabled() && Ringservice.getChatHandlers().size() > 0);
popup.getMenu().findItem(R.id.chat_plugins).setVisible(JamiService.getPluginsEnabled() && !JamiService.getChatHandlers().isEmpty());
MenuPopupHelper menuHelper = new MenuPopupHelper(context, (MenuBuilder) popup.getMenu(), v);
menuHelper.setForceShowIcon(true);
menuHelper.show();
......@@ -450,7 +447,7 @@ public class ConversationFragment extends BaseSupportFragment<ConversationPresen
FragmentManager fragmentManager = getChildFragmentManager();
PluginHandlersListFragment fragment = PluginHandlersListFragment.newInstance(accountId, contactId);
fragmentManager.beginTransaction()
.add(R.id.pluginListHandlers, fragment, fragment.TAG)
.add(R.id.pluginListHandlers, fragment, PluginHandlersListFragment.TAG)
.commit();
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) binding.mapCard.getLayoutParams();
......
......@@ -214,7 +214,7 @@ public class LinkDeviceFragment extends BaseBottomSheetFragment<LinkDevicePresen
mBinding.accountLinkInfo.setText(styledResultText);
mBinding.accountLinkInfo.requestFocus();
KeyboardVisibilityManager.hideKeyboard(getActivity(), 0);
KeyboardVisibilityManager.hideKeyboard(getActivity());
}
private void onClickStart() {
......
......@@ -9,7 +9,8 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import cx.ring.daemon.Ringservice;
import net.jami.daemon.JamiService;
import cx.ring.databinding.FragPluginHandlersListBinding;
import cx.ring.plugins.PluginUtils;
import cx.ring.settings.pluginssettings.PluginDetails;
......@@ -74,11 +75,11 @@ public class PluginHandlersListFragment extends Fragment implements PluginsListA
@Override
public void onPluginItemClicked(PluginDetails pluginDetails) {
Ringservice.toggleChatHandler(pluginDetails.getmHandlerId(), mPath.getAccountId(), mPath.getConversationId(), pluginDetails.isEnabled());
JamiService.toggleChatHandler(pluginDetails.getmHandlerId(), mPath.getAccountId(), mPath.getConversationId(), pluginDetails.isEnabled());
}
@Override
public void onPluginEnabled(PluginDetails pluginDetails) {
Ringservice.toggleChatHandler(pluginDetails.getmHandlerId(), mPath.getAccountId(), mPath.getConversationId(), pluginDetails.isEnabled());
JamiService.toggleChatHandler(pluginDetails.getmHandlerId(), mPath.getAccountId(), mPath.getConversationId(), pluginDetails.isEnabled());
}
}
......@@ -8,8 +8,10 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
import net.jami.daemon.Ringservice;
import cx.ring.settings.pluginssettings.PluginDetails;
import net.jami.daemon.JamiService;
import net.jami.daemon.StringMap;
import net.jami.utils.Log;
public class PluginUtils {
......@@ -26,8 +28,8 @@ public class PluginUtils {
tree(mContext.getFilesDir() + File.separator+ "plugins",0);
tree(mContext.getCacheDir().getAbsolutePath(),0);
List<String> pluginsPaths = Ringservice.getInstalledPlugins();
List<String> loadedPluginsPaths = Ringservice.getLoadedPlugins();
List<String> pluginsPaths = JamiService.getInstalledPlugins();
List<String> loadedPluginsPaths = JamiService.getLoadedPlugins();
List<PluginDetails> pluginsList = new ArrayList<>(pluginsPaths.size());
for (String pluginPath : pluginsPaths) {
......@@ -59,12 +61,12 @@ public class PluginUtils {
tree(mContext.getFilesDir() + File.separator+ "plugins",0);
tree(mContext.getCacheDir().getAbsolutePath(),0);
List<String> chatHandlersId = Ringservice.getChatHandlers();
List<String> chatHandlerStatus = Ringservice.getChatHandlerStatus(accountId, peerId);
List<String> chatHandlersId = JamiService.getChatHandlers();
List<String> chatHandlerStatus = JamiService.getChatHandlerStatus(accountId, peerId);
List<PluginDetails> handlersList = new ArrayList<>(chatHandlersId.size());
for (String handlerId : chatHandlersId) {
StringMap handlerDetails = Ringservice.getChatHandlerDetails(handlerId);
StringMap handlerDetails = JamiService.getChatHandlerDetails(handlerId);
String pluginPath = handlerDetails.get("pluginId");
pluginPath = pluginPath.substring(0, pluginPath.lastIndexOf("/data"));
boolean enabled = false;
......@@ -85,7 +87,7 @@ public class PluginUtils {
* @return true if loaded
*/
public static boolean loadPlugin(String path) {
return Ringservice.loadPlugin(path);
return JamiService.loadPlugin(path);
}
/**
......@@ -95,7 +97,7 @@ public class PluginUtils {
* @return true if unloaded
*/
public static boolean unloadPlugin(String path) {
return Ringservice.unloadPlugin(path);
return JamiService.unloadPlugin(path);
}
/**
......@@ -103,7 +105,7 @@ public class PluginUtils {
* @return list of path
*/
public static List<String> getLoadedPlugins() {
return Ringservice.getLoadedPlugins();
return JamiService.getLoadedPlugins();
}
/**
......
......@@ -68,8 +68,7 @@ import java.util.Map;
import java.util.Set;
import net.jami.daemon.IntVect;
import net.jami.daemon.Ringservice;
import net.jami.daemon.RingserviceJNI;
import net.jami.daemon.JamiService;
import net.jami.daemon.StringMap;
import net.jami.daemon.UintVect;
import net.jami.utils.Tuple;
......@@ -114,7 +113,7 @@ public class CameraService {
if (addedDevices.add(camera.first)) {
if (!devices.cameras.contains(camera.first))
devices.cameras.add(camera.first);
RingserviceJNI.addVideoDevice(camera.first);
JamiService.addVideoDevice(camera.first);
}
}
});
......@@ -127,7 +126,7 @@ public class CameraService {
if (addedDevices.remove(cameraId)) {
Log.w(TAG, "onCameraUnavailable " + cameraId + " current:" + previewCamera);
devices.cameras.remove(cameraId);
RingserviceJNI.removeVideoDevice(cameraId);
JamiService.removeVideoDevice(cameraId);
}
}
}
......@@ -222,7 +221,7 @@ public class CameraService {
}
params.rotation = getCameraDisplayRotation(deviceParams, rotation);
int r = params.rotation;
getVideoHandler().post(() -> Ringservice.setDeviceOrientation(camId, r));
getVideoHandler().post(() -> JamiService.setDeviceOrientation(camId, r));
}
public void setOrientation(int rotation) {
......@@ -242,7 +241,7 @@ public class CameraService {
if (params != null) {
params.rotation = rotation;
}
Ringservice.setDeviceOrientation(camId, rotation);
JamiService.setDeviceOrientation(camId, rotation);
}
private static int getCameraDisplayRotation(DeviceParams device, int screenRotation) {
......@@ -414,19 +413,19 @@ public class CameraService {
for (String oldId : old.cameras) {
if (!devs.cameras.contains(oldId) || resetCamera) {
if (addedDevices.remove(oldId))
RingserviceJNI.removeVideoDevice(oldId);
JamiService.removeVideoDevice(oldId);
}
}
}
// Added devices
for (String camera : devs.cameras) {
Log.w(TAG, "RingserviceJNI.addVideoDevice init " + camera);
Log.w(TAG, "JamiServiceJNI.addVideoDevice init " + camera);
if (addedDevices.add(camera))
RingserviceJNI.addVideoDevice(camera);
JamiService.addVideoDevice(camera);
}
// New default
if (devs.currentId != null) {
RingserviceJNI.setDefaultDevice(devs.currentId);
JamiService.setDefaultDevice(devs.currentId);
}
}
return devs;
......@@ -581,12 +580,12 @@ public class CameraService {
// If it's a key-frame, send the cached SPS/PPS NALs prior to
// sending key-frame.
if (isKeyFrame && codecData != null) {
RingserviceJNI.captureVideoPacket(codecData, codecData.capacity(), 0, false, info.presentationTimeUs, videoParams.rotation);
JamiService.captureVideoPacket(codecData, codecData.capacity(), 0, false, info.presentationTimeUs, videoParams.rotation);
}
// Send the encoded frame
ByteBuffer buffer = codec.getOutputBuffer(index);
RingserviceJNI.captureVideoPacket(buffer, info.size, info.offset, isKeyFrame, info.presentationTimeUs, videoParams.rotation);
JamiService.captureVideoPacket(buffer, info.size, info.offset, isKeyFrame, info.presentationTimeUs, videoParams.rotation);
codec.releaseOutputBuffer(index, false);
}
}
......@@ -840,7 +839,7 @@ public class CameraService {
tmpReader.setOnImageAvailableListener(r -> {
Image image = r.acquireLatestImage();
if (image != null) {
RingserviceJNI.captureVideoFrame(image, videoParams.rotation);
JamiService.captureVideoFrame(image, videoParams.rotation);
image.close();
}
}, handler);
......
......@@ -40,7 +40,7 @@ public class DataTransferService extends Service {
private final String TAG = DataTransferService.class.getSimpleName();
@Inject
net.jami.services.NotificationService mNotificationService;
NotificationService mNotificationService;
private NotificationManagerCompat notificationManager;
private boolean isFirst = true;
......@@ -59,22 +59,22 @@ public class DataTransferService extends Service {
return START_NOT_STICKY;
}
if (isFirst) {
isFirst = false;
//if (isFirst) {
// isFirst = false;
mNotificationService.cancelFileNotification(notificationId, true);
serviceNotificationId = notificationId;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
startForeground(NOTIF_FILE_SERVICE_ID, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC);
else
startForeground(NOTIF_FILE_SERVICE_ID, notification);
}
//}
if (mNotificationService.getDataTransferNotification(serviceNotificationId) == null) {
mNotificationService.cancelFileNotification(notificationId, true);
serviceNotificationId = notificationId;
}
if(notificationId == serviceNotificationId)
if (notificationId == serviceNotificationId)
notificationManager.notify(NOTIF_FILE_SERVICE_ID, notification);
else
notificationManager.notify(notificationId, notification);
......
......@@ -46,7 +46,7 @@ import java.util.List;
import java.util.Map;
import net.jami.daemon.IntVect;
import net.jami.daemon.Ringservice;
import net.jami.daemon.JamiService;
import net.jami.daemon.UintVect;
import net.jami.model.Conference;
import net.jami.model.Call;
......@@ -340,7 +340,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
@Override
synchronized public void toggleSpeakerphone(boolean checked) {
Ringservice.setAudioPlugin(Ringservice.getCurrentAudioOutputPlugin());
JamiService.setAudioPlugin(JamiService.getCurrentAudioOutputPlugin());
mShouldSpeakerphone = checked;
Log.w(TAG, "toggleSpeakerphone setSpeakerphoneOn " + checked);
if (mHasSpeakerPhone && checked) {
......@@ -382,7 +382,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
shm.window = startVideo(id, holder.getSurface(), width, height);
if (shm.window == 0) {
Log.i(TAG, "DRingService.decodingStarted() no window !");
Log.i(TAG, "DJamiService.decodingStarted() no window !");
VideoEvent event = new VideoEvent();
event.start = true;
......@@ -493,7 +493,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
private void toggleMediaHandler(String callId) {
if (mMediaHandlerId != null)
Ringservice.toggleCallMediaHandler(mMediaHandlerId, callId, true);
JamiService.toggleCallMediaHandler(mMediaHandlerId, callId, true);
}
public void stopMediaHandler() {
......@@ -533,7 +533,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
if (conf != null && useHardwareCodec) {
Call call = conf.getCall();
if (call != null) {
call.setDetails(Ringservice.getCallDetails(call.getDaemonIdString()).toNative());
call.setDetails(JamiService.getCallDetails(call.getDaemonIdString()).toNative());
videoParams.codec = call.getVideoCodec();
} else {
videoParams.codec = null;
......@@ -553,7 +553,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
if (currentCall == null)
return;
if (mPluginCallId != null && !mPluginCallId.equals(currentCall)) {
Ringservice.toggleCallMediaHandler(mMediaHandlerId, currentCall, false);
JamiService.toggleCallMediaHandler(mMediaHandlerId, currentCall, false);
mIsChoosePlugin = false;
mMediaHandlerId = null;
mPluginCallId = null;
......@@ -629,7 +629,7 @@ public class HardwareServiceImpl extends HardwareService implements AudioManager
}
if (shm == null || shm.window == 0) {
Log.i(TAG, "DRingService.addVideoSurface() no window !");
Log.i(TAG, "DJamiService.addVideoSurface() no window !");
VideoEvent event = new VideoEvent();
event.start = true;
......
......@@ -62,7 +62,7 @@ import cx.ring.R;
import cx.ring.application.JamiApplication;
import cx.ring.client.ConversationActivity;
import net.jami.daemon.Blob;
import net.jami.daemon.Ringservice;
import net.jami.daemon.JamiService;
import net.jami.daemon.StringMap;
import net.jami.facades.ConversationFacade;
import cx.ring.fragments.ConversationFragment;
......@@ -215,7 +215,7 @@ public class LocationSharingService extends Service implements LocationListener
StringMap msgs = new StringMap();
msgs.setRaw(net.jami.services.CallService.MIME_GEOLOCATION, Blob.fromString(location.toString()));
for (ConversationPath p : contactLocationShare.keySet()) {
Ringservice.sendAccountTextMessage(p.getAccountId(), p.getConversationId(), msgs);
JamiService.sendAccountTextMessage(p.getAccountId(), p.getConversationId(), msgs);
}