Skip to content

Commit

Permalink
Merge branch 'master' into gino-m/1873/1
Browse files Browse the repository at this point in the history
  • Loading branch information
gino-m authored Sep 12, 2023
2 parents e90648b + fe70cb6 commit d360eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class LocalValueStore @Inject constructor(private val preferences: SharedPrefere

/** Whether to overlay offline map imagery. */
var isOfflineImageryEnabled: Boolean
get() = allowThreadDiskReads { preferences.getBoolean(OFFLINE_MAP_IMAGERY, false) }
get() = allowThreadDiskReads { preferences.getBoolean(OFFLINE_MAP_IMAGERY, true) }
set(value) = allowThreadDiskReads {
preferences.edit().putBoolean(OFFLINE_MAP_IMAGERY, value).apply()
_offlineImageryEnabled.value = value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MapStateRepositoryTest : BaseHiltTest() {

@Test
fun isOfflineImageryEnabled_default() = runWithTestDispatcher {
assertThat(mapStateRepository.isOfflineImageryEnabled).isFalse()
assertThat(mapStateRepository.isOfflineImageryEnabled).isTrue()
}

@Test
Expand Down

0 comments on commit d360eb9

Please sign in to comment.