Skip to content

Commit 5759ed7

Browse files
authored
Minor renaming of methods and classes (#922)
1 parent 077b7ae commit 5759ed7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:supportsRtl="true"
2626
android:theme="@style/AppTheme">
2727
<activity
28-
android:name="com.example.android.architecture.blueprints.todoapp.TasksActivity"
28+
android:name="com.example.android.architecture.blueprints.todoapp.TodoActivity"
2929
android:windowSoftInputMode="adjustResize"
3030
android:exported="true"
3131
android:theme="@style/AppTheme.OverlapSystemBar">

app/src/main/java/com/example/android/architecture/blueprints/todoapp/TasksActivity.kt renamed to app/src/main/java/com/example/android/architecture/blueprints/todoapp/TodoActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import dagger.hilt.android.AndroidEntryPoint
2626
* Main activity for the todoapp
2727
*/
2828
@AndroidEntryPoint
29-
class TasksActivity : ComponentActivity() {
29+
class TodoActivity : ComponentActivity() {
3030

3131
override fun onCreate(savedInstanceState: Bundle?) {
3232
super.onCreate(savedInstanceState)

app/src/main/java/com/example/android/architecture/blueprints/todoapp/TodoNavigation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object TodoDestinationsArgs {
4646
}
4747

4848
/**
49-
* Destinations used in the [TasksActivity]
49+
* Destinations used in the [TodoActivity]
5050
*/
5151
object TodoDestinations {
5252
const val TASKS_ROUTE = "$TASKS_SCREEN?$USER_MESSAGE_ARG={$USER_MESSAGE_ARG}"

app/src/main/java/com/example/android/architecture/blueprints/todoapp/di/DataModules.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ import javax.inject.Singleton
3333

3434
@Qualifier
3535
@Retention(AnnotationRetention.RUNTIME)
36-
annotation class RemoteTasksDataSource
36+
annotation class NetworkTaskDataSource
3737

3838
@Module
3939
@InstallIn(SingletonComponent::class)
4040
object RepositoryModule {
4141

4242
@Singleton
4343
@Provides
44-
fun provideTasksRepository(
45-
@RemoteTasksDataSource remoteDataSource: NetworkDataSource,
44+
fun provideTaskRepository(
45+
@NetworkTaskDataSource remoteDataSource: NetworkDataSource,
4646
database: ToDoDatabase,
4747
): TaskRepository {
4848
return DefaultTaskRepository(remoteDataSource, database.taskDao())
@@ -54,9 +54,9 @@ object RepositoryModule {
5454
object DataSourceModule {
5555

5656
@Singleton
57-
@RemoteTasksDataSource
57+
@NetworkTaskDataSource
5858
@Provides
59-
fun provideTasksRemoteDataSource(): NetworkDataSource = TaskNetworkDataSource
59+
fun provideTaskRemoteDataSource(): NetworkDataSource = TaskNetworkDataSource
6060
}
6161

6262
@Module

0 commit comments

Comments
 (0)