Messaging: Implement per conversation channels. Update API level to 28.
* Get rid of in-app settings for notifications, replaced by channels features * Remove all the notification plumbing and dead code Test: m, manual Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Danny Baumann <dannybaumann@web.de> Signed-off-by: Arne Coucheron <arco68@gmail.com> Signed-off-by: Lyubo <lyubodzhamov@gmail.com> Change-Id: Idb39ca32751d40b3376934775d2119dd6cc7e297
This commit is contained in:
committed by
Michael Bestas
parent
2fa1f81707
commit
4246987beb
@@ -51,33 +51,14 @@ public class SyncManager {
|
||||
*/
|
||||
public static class ConversationCustomization {
|
||||
private final boolean mArchived;
|
||||
private final boolean mMuted;
|
||||
private final boolean mNoVibrate;
|
||||
private final String mNotificationSoundUri;
|
||||
|
||||
public ConversationCustomization(final boolean archived, final boolean muted,
|
||||
final boolean noVibrate, final String notificationSoundUri) {
|
||||
public ConversationCustomization(final boolean archived) {
|
||||
mArchived = archived;
|
||||
mMuted = muted;
|
||||
mNoVibrate = noVibrate;
|
||||
mNotificationSoundUri = notificationSoundUri;
|
||||
}
|
||||
|
||||
public boolean isArchived() {
|
||||
return mArchived;
|
||||
}
|
||||
|
||||
public boolean isMuted() {
|
||||
return mMuted;
|
||||
}
|
||||
|
||||
public boolean noVibrate() {
|
||||
return mNoVibrate;
|
||||
}
|
||||
|
||||
public String getNotificationSoundUri() {
|
||||
return mNotificationSoundUri;
|
||||
}
|
||||
}
|
||||
|
||||
SyncManager() {
|
||||
@@ -436,15 +417,13 @@ public class SyncManager {
|
||||
if (customization != null) {
|
||||
// There is user customization we need to recover
|
||||
conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId,
|
||||
customization.isArchived(), participants, customization.isMuted(),
|
||||
customization.noVibrate(), customization.getNotificationSoundUri());
|
||||
customization.isArchived(), participants);
|
||||
if (customization.isArchived()) {
|
||||
mArchivedConversations.add(conversationId);
|
||||
}
|
||||
} else {
|
||||
conversationId = BugleDatabaseOperations.getOrCreateConversation(db, threadId,
|
||||
false/*archived*/, participants, false/*noNotification*/,
|
||||
false/*noVibrate*/, null/*soundUri*/);
|
||||
false/*archived*/, participants);
|
||||
}
|
||||
|
||||
if (conversationId != null) {
|
||||
|
||||
Reference in New Issue
Block a user