Skip to content

Commit

Permalink
feat(react-native-sdk/android): rename JitsiMeetOngoingConferenceService
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Dec 18, 2024
1 parent 7da0850 commit 4d5ea63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 4d5ea63

Please sign in to comment.