Convert Recipient to kotlin.

This commit is contained in:
Greyson Parrelli
2024-04-03 12:23:55 -04:00
parent b50eab230d
commit 3ba2b46bb0
100 changed files with 1513 additions and 2020 deletions

View File

@@ -88,9 +88,9 @@ class ChatWallpaperRepository {
if (recipientId != null) {
EXECUTOR.execute(() -> {
Recipient recipient = Recipient.resolved(recipientId);
if (recipient.hasOwnWallpaper()) {
if (recipient.getHasOwnWallpaper()) {
SignalDatabase.recipients().setDimWallpaperInDarkTheme(recipientId, dimInDarkTheme);
} else if (recipient.hasWallpaper()) {
} else if (recipient.getHasWallpaper()) {
SignalDatabase.recipients()
.setWallpaper(recipientId,
ChatWallpaperFactory.updateWithDimming(recipient.getWallpaper(),

View File

@@ -163,7 +163,7 @@ public class ChatWallpaperViewModel extends ViewModel {
private boolean hasClearableWallpaper() {
return (isGlobal() && SignalStore.wallpaper().hasWallpaperSet()) ||
(recipientId != null && Recipient.live(recipientId).get().hasOwnWallpaper());
(recipientId != null && Recipient.live(recipientId).get().getHasOwnWallpaper());
}
public void resetAllChatColors() {