mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Fix several ChatColors issues.
This commit is contained in:
@@ -116,13 +116,13 @@ public class ChatWallpaperFragment extends Fragment {
|
||||
viewModel.saveWallpaperSelection();
|
||||
dialog.dismiss();
|
||||
})
|
||||
.setNeutralButton(R.string.ChatWallpaperFragment__reset_all_wallpapers, (dialog, which) -> {
|
||||
.setNegativeButton(R.string.ChatWallpaperFragment__reset_all_wallpapers, (dialog, which) -> {
|
||||
viewModel.setWallpaper(null);
|
||||
viewModel.setDimInDarkTheme(true);
|
||||
viewModel.resetAllWallpaper();
|
||||
dialog.dismiss();
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, (dialog, which) -> {
|
||||
.setNeutralButton(android.R.string.cancel, (dialog, which) -> {
|
||||
dialog.dismiss();
|
||||
})
|
||||
.show();
|
||||
@@ -136,11 +136,11 @@ public class ChatWallpaperFragment extends Fragment {
|
||||
viewModel.clearChatColor();
|
||||
dialog.dismiss();
|
||||
})
|
||||
.setNeutralButton(R.string.ChatWallpaperFragment__reset_all_colors, (dialog, which) -> {
|
||||
.setNegativeButton(R.string.ChatWallpaperFragment__reset_all_colors, (dialog, which) -> {
|
||||
viewModel.resetAllChatColors();
|
||||
dialog.dismiss();
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, (dialog, which) -> {
|
||||
.setNeutralButton(android.R.string.cancel, (dialog, which) -> {
|
||||
dialog.dismiss();
|
||||
})
|
||||
.show();
|
||||
|
||||
@@ -44,7 +44,7 @@ class ChatWallpaperRepository {
|
||||
} else if (SignalStore.wallpaper().hasWallpaperSet()) {
|
||||
return Objects.requireNonNull(SignalStore.wallpaper().getWallpaper()).getAutoChatColors();
|
||||
} else {
|
||||
return ChatColorsPalette.Bubbles.getDefault();
|
||||
return ChatColorsPalette.Bubbles.getDefault().withId(ChatColors.Id.Auto.INSTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user