-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b93eea7
commit 094fcc1
Showing
3 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lazythreetenbp/src/main/kotlin/com/usefulness/threetenbp/LazyZoneRulesInitializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.usefulness.threetenbp | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import org.threeten.bp.zone.ZoneRulesInitializer | ||
import org.threeten.bp.zone.ZoneRulesProvider | ||
|
||
internal class LazyZoneRulesInitializer(private val application: Application) : ZoneRulesInitializer() { | ||
internal class LazyZoneRulesInitializer(private val context: Context) : ZoneRulesInitializer() { | ||
|
||
override fun initializeProviders() { | ||
ZoneRulesProvider.registerProvider(LazyZoneRulesProvider(application)) | ||
ZoneRulesProvider.registerProvider(LazyZoneRulesProvider(context.assets)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters