From 4d5ea63cefbc1df075fc1ac119d30b0096753af8 Mon Sep 17 00:00:00 2001 From: Calin-Teodor Date: Wed, 18 Dec 2024 15:13:21 +0200 Subject: [PATCH] feat(react-native-sdk/android): rename JitsiMeetOngoingConferenceService --- .../org/jitsi/meet/sdk/JMOngoingConferenceModule.java | 4 ++-- ...ceService.java => JMOngoingConferenceService.java} | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) rename react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/{JitsiMeetOngoingConferenceService.java => JMOngoingConferenceService.java} (93%) diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java index bc8c3fde54cd..a35235013eb8 100644 --- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java +++ b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceModule.java @@ -24,13 +24,13 @@ public JMOngoingConferenceModule(ReactApplicationContext reactContext) { public void launch() { Context context = getReactApplicationContext(); Activity currentActivity = getCurrentActivity(); - JitsiMeetOngoingConferenceService.launch(context, currentActivity); + JMOngoingConferenceService.launch(context, currentActivity); } @ReactMethod public void abort() { Context context = getReactApplicationContext(); - JitsiMeetOngoingConferenceService.abort(context); + JMOngoingConferenceService.abort(context); } @NonNull diff --git a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceService.java similarity index 93% rename from react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java rename to react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceService.java index 597f1248f941..efee1d5427b7 100644 --- a/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JitsiMeetOngoingConferenceService.java +++ b/react-native-sdk/android/src/main/java/org/jitsi/meet/sdk/JMOngoingConferenceService.java @@ -43,21 +43,18 @@ * * See: https://developer.android.com/guide/components/services */ -public class JitsiMeetOngoingConferenceService extends Service { - private static final String TAG = JitsiMeetOngoingConferenceService.class.getSimpleName(); +public class JMOngoingConferenceService extends Service { + private static final String TAG = JMOngoingConferenceService.class.getSimpleName(); private static final int PERMISSIONS_REQUEST_CODE = (int) (Math.random() * Short.MAX_VALUE); static final int NOTIFICATION_ID = new Random().nextInt(99999) + 10000; - private static PermissionListener permissionListener; - - public static void doLaunch(Context context, Activity currentActivity) { RNOngoingNotification.createOngoingConferenceNotificationChannel(currentActivity); - Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class); + Intent intent = new Intent(context, JMOngoingConferenceService.class); ComponentName componentName; @@ -127,7 +124,7 @@ public boolean onRequestPermissionsResult(int i, String[] strings, int[] results } public static void abort(Context context) { - Intent intent = new Intent(context, JitsiMeetOngoingConferenceService.class); + Intent intent = new Intent(context, JMOngoingConferenceService.class); context.stopService(intent); }