feat(android) extract notification channel name
This commit is contained in:
parent
6a223763a3
commit
6124e72f21
|
@ -5,7 +5,6 @@ import java.util.List;
|
||||||
|
|
||||||
public class NotificationChannels {
|
public class NotificationChannels {
|
||||||
static final String ONGOING_CONFERENCE_CHANNEL_ID = "JitsiOngoingConferenceChannel";
|
static final String ONGOING_CONFERENCE_CHANNEL_ID = "JitsiOngoingConferenceChannel";
|
||||||
static final String ONGOING_CONFERNCE_CHANNEL_NAME = "Ongoing Conference Notifications";
|
|
||||||
|
|
||||||
public static List<String> allIds = new ArrayList<String>() {{ add(ONGOING_CONFERENCE_CHANNEL_ID); }};
|
public static List<String> allIds = new ArrayList<String>() {{ add(ONGOING_CONFERENCE_CHANNEL_ID); }};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
package org.jitsi.meet.sdk;
|
package org.jitsi.meet.sdk;
|
||||||
|
|
||||||
import static org.jitsi.meet.sdk.NotificationChannels.ONGOING_CONFERENCE_CHANNEL_ID;
|
import static org.jitsi.meet.sdk.NotificationChannels.ONGOING_CONFERENCE_CHANNEL_ID;
|
||||||
import static org.jitsi.meet.sdk.NotificationChannels.ONGOING_CONFERNCE_CHANNEL_NAME;
|
|
||||||
|
|
||||||
import android.app.Notification;
|
import android.app.Notification;
|
||||||
import android.app.NotificationChannel;
|
import android.app.NotificationChannel;
|
||||||
|
@ -66,7 +65,7 @@ class OngoingNotification {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
channel = new NotificationChannel(ONGOING_CONFERENCE_CHANNEL_ID, ONGOING_CONFERNCE_CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT);
|
channel = new NotificationChannel(ONGOING_CONFERENCE_CHANNEL_ID, context.getString(R.string.ongoing_notification_action_unmute), NotificationManager.IMPORTANCE_DEFAULT);
|
||||||
channel.enableLights(false);
|
channel.enableLights(false);
|
||||||
channel.enableVibration(false);
|
channel.enableVibration(false);
|
||||||
channel.setShowBadge(false);
|
channel.setShowBadge(false);
|
||||||
|
|
|
@ -6,4 +6,5 @@
|
||||||
<string name="ongoing_notification_action_hang_up">Hang up</string>
|
<string name="ongoing_notification_action_hang_up">Hang up</string>
|
||||||
<string name="ongoing_notification_action_mute">Mute</string>
|
<string name="ongoing_notification_action_mute">Mute</string>
|
||||||
<string name="ongoing_notification_action_unmute">Unmute</string>
|
<string name="ongoing_notification_action_unmute">Unmute</string>
|
||||||
|
<string name="ongoing_notification_channel_name">Ongoing Conference Notifications</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue