From 22537b44ce024d04aaee5e6b273adda47378ddb1 Mon Sep 17 00:00:00 2001 From: Tuomas Airaksinen Date: Sat, 4 Feb 2023 14:32:38 +0200 Subject: [PATCH] Fix #2413 (Crash when trying to open workspace selector) --- .../view/activity/workspaces/WorkspaceSelectorActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/bible/android/view/activity/workspaces/WorkspaceSelectorActivity.kt b/app/src/main/java/net/bible/android/view/activity/workspaces/WorkspaceSelectorActivity.kt index 9e04928301..524f07149a 100644 --- a/app/src/main/java/net/bible/android/view/activity/workspaces/WorkspaceSelectorActivity.kt +++ b/app/src/main/java/net/bible/android/view/activity/workspaces/WorkspaceSelectorActivity.kt @@ -96,7 +96,7 @@ class WorkspaceAdapter(val activity: WorkspaceSelectorActivity): RecyclerView.Ad title.text = titleText summary.text = workspaceEntity.contentsText - val workspaceColor = (workspaceEntity.workspaceSettings?: WorkspaceEntities.WorkspaceSettings.default).workspaceColor!! + val workspaceColor = workspaceEntity.workspaceSettings?.workspaceColor?: defaultWorkspaceColor dragHolder.setColorFilter(workspaceColor) layout.setOnClickListener {