Skip to content

Commit

Permalink
Fix sharedPrefsHelper instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
corcoran committed Jun 6, 2019
1 parent 5775453 commit d81cfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/ca/mimic/hangar/HangarReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ca.mimic.hangar.Constants.Companion.RECEIVER_BOOT_COMPLETED

class HangarReceiver : BroadcastReceiver() {
private lateinit var receiverContext: Context
private val sharedPreferences = SharedPrefsHelper(receiverContext)
private val sharedPreferences by lazy { SharedPrefsHelper(receiverContext) }

override fun onReceive(context: Context, intent: Intent) {
receiverContext = context
Expand Down

0 comments on commit d81cfe6

Please sign in to comment.