File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
java/com/example/android/architecture/blueprints/todoapp Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
android : supportsRtl =" true"
26
26
android : theme =" @style/AppTheme" >
27
27
<activity
28
- android : name =" com.example.android.architecture.blueprints.todoapp.TasksActivity "
28
+ android : name =" com.example.android.architecture.blueprints.todoapp.TodoActivity "
29
29
android : windowSoftInputMode =" adjustResize"
30
30
android : exported =" true"
31
31
android : theme =" @style/AppTheme.OverlapSystemBar" >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import dagger.hilt.android.AndroidEntryPoint
26
26
* Main activity for the todoapp
27
27
*/
28
28
@AndroidEntryPoint
29
- class TasksActivity : ComponentActivity () {
29
+ class TodoActivity : ComponentActivity () {
30
30
31
31
override fun onCreate (savedInstanceState : Bundle ? ) {
32
32
super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ object TodoDestinationsArgs {
46
46
}
47
47
48
48
/* *
49
- * Destinations used in the [TasksActivity ]
49
+ * Destinations used in the [TodoActivity ]
50
50
*/
51
51
object TodoDestinations {
52
52
const val TASKS_ROUTE = " $TASKS_SCREEN ?$USER_MESSAGE_ARG ={$USER_MESSAGE_ARG }"
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ import javax.inject.Singleton
33
33
34
34
@Qualifier
35
35
@Retention(AnnotationRetention .RUNTIME )
36
- annotation class RemoteTasksDataSource
36
+ annotation class NetworkTaskDataSource
37
37
38
38
@Module
39
39
@InstallIn(SingletonComponent ::class )
40
40
object RepositoryModule {
41
41
42
42
@Singleton
43
43
@Provides
44
- fun provideTasksRepository (
45
- @RemoteTasksDataSource remoteDataSource : NetworkDataSource ,
44
+ fun provideTaskRepository (
45
+ @NetworkTaskDataSource remoteDataSource : NetworkDataSource ,
46
46
database : ToDoDatabase ,
47
47
): TaskRepository {
48
48
return DefaultTaskRepository (remoteDataSource, database.taskDao())
@@ -54,9 +54,9 @@ object RepositoryModule {
54
54
object DataSourceModule {
55
55
56
56
@Singleton
57
- @RemoteTasksDataSource
57
+ @NetworkTaskDataSource
58
58
@Provides
59
- fun provideTasksRemoteDataSource (): NetworkDataSource = TaskNetworkDataSource
59
+ fun provideTaskRemoteDataSource (): NetworkDataSource = TaskNetworkDataSource
60
60
}
61
61
62
62
@Module
You can’t perform that action at this time.
0 commit comments