feedback pass 3
This commit is contained in:
parent
17ae77344b
commit
cc56dc6d5b
|
@ -27,6 +27,9 @@ import java.util.HashSet;
|
|||
class OngoingConferenceTracker {
|
||||
private static final OngoingConferenceTracker instance = new OngoingConferenceTracker();
|
||||
|
||||
private static final String CONFERENCE_WILL_JOIN = "CONFERENCE_WILL_JOIN";
|
||||
private static final String CONFERENCE_TERMINATED = "CONFERENCE_TERMINATED";
|
||||
|
||||
private final Collection<OngoingConferenceListener> listeners =
|
||||
Collections.synchronizedSet(new HashSet<OngoingConferenceListener>());
|
||||
private String currentConference;
|
||||
|
@ -53,12 +56,12 @@ class OngoingConferenceTracker {
|
|||
}
|
||||
|
||||
switch(name) {
|
||||
case "CONFERENCE_WILL_JOIN":
|
||||
case CONFERENCE_WILL_JOIN:
|
||||
currentConference = url;
|
||||
updateOnConferenceJoined();
|
||||
break;
|
||||
|
||||
case "CONFERENCE_TERMINATED":
|
||||
case CONFERENCE_TERMINATED:
|
||||
if (url.equals(currentConference)) {
|
||||
currentConference = null;
|
||||
updateOnConferenceTerminated();
|
||||
|
|
|
@ -86,8 +86,8 @@ class OngoingNotification {
|
|||
|
||||
builder
|
||||
.setCategory(NotificationCompat.CATEGORY_CALL)
|
||||
.setContentTitle("Ongoing meeting")
|
||||
.setContentText("You are currently in a meeting. Tap to return to it.")
|
||||
.setContentTitle(context.getString(R.string.ongoing_notification_title))
|
||||
.setContentText(context.getString(R.string.ongoing_notification_text))
|
||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setOngoing(true)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<resources>
|
||||
<string name="app_name">Jitsi Meet SDK</string>
|
||||
<string name="dropbox_app_key"></string>
|
||||
<string name="ongoing_notification_title">Ongoing meeting</string>
|
||||
<string name="ongoing_notification_text">You are currently in a meeting. Tap to return to it.</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue