Fix formatting

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-01-21 12:30:25 +05:30
parent 1d8d3442b8
commit 57ba7128ed
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ If you pay attention to the [commit](https://github.com/msfjarvis/dagger-the-eas
## Initializing our component
Now for Dagger to know when to create this graph, it needs to be able to know how to initialize the `Component` we wrote earlier. For this, we'll be adding a factory that constructs the `AppComponent`. Since we need a Context to be able to create `SharedPreferences`, we'll make our factory accept a context parameter. Here's how the finished `AppComponent looks like with the factory method.
Now for Dagger to know when to create this graph, it needs to be able to know how to initialize the `Component` we wrote earlier. For this, we'll be adding a factory that constructs the `AppComponent`. Since we need a Context to be able to create `SharedPreferences`, we'll make our factory accept a context parameter. Here's how the finished `AppComponent` looks like with the factory method.
```kotlin
@Singleton