-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the issue where items weren't deleted when search mode is enable
- Loading branch information
1 parent
3b16397
commit 3dfcc8f
Showing
25 changed files
with
289 additions
and
252 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
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 |
---|---|---|
|
@@ -32,9 +32,5 @@ class MainActivity : ComponentActivity() { | |
} | ||
} | ||
|
||
override fun onDestroy() { | ||
super.onDestroy() | ||
} | ||
|
||
} | ||
|
This file was deleted.
Oops, something went wrong.
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
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
33 changes: 0 additions & 33 deletions
33
app/src/main/java/org/ireader/infinity/di/NetworkModule.kt
This file was deleted.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
app/src/main/java/org/ireader/infinity/di/RepositoryInject.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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package org.ireader.infinity.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import org.ireader.data.local.dao.* | ||
import org.ireader.data.repository.* | ||
import org.ireader.domain.catalog.service.CatalogRemoteRepository | ||
import org.ireader.domain.repository.* | ||
import javax.inject.Singleton | ||
|
||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
class RepositoryInject { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideRemoteKeyRepository( | ||
remoteKeysDao: RemoteKeysDao, | ||
): RemoteKeyRepository { | ||
return RemoteKeyRepositoryImpl( | ||
dao = remoteKeysDao, | ||
) | ||
} | ||
|
||
@Singleton | ||
@Provides | ||
fun provideDownloadRepository( | ||
downloadDao: DownloadDao, | ||
): DownloadRepository { | ||
return DownloadRepositoryImpl(downloadDao) | ||
} | ||
|
||
@Singleton | ||
@Provides | ||
fun provideUpdatesRepository( | ||
updatesDao: UpdatesDao, | ||
): UpdatesRepository { | ||
return UpdatesRepositoryImpl(updatesDao) | ||
} | ||
|
||
@Provides | ||
@Singleton | ||
fun provideCatalogRemoteRepository(catalogDao: CatalogDao): CatalogRemoteRepository { | ||
return CatalogRemoteRepositoryImpl(dao = catalogDao) | ||
} | ||
|
||
@Provides | ||
@Singleton | ||
fun providesLocalChapterRepository(chapterDao: chapterDao): LocalChapterRepository { | ||
return LocalChapterRepositoryImpl(chapterDao) | ||
} | ||
|
||
|
||
@Provides | ||
@Singleton | ||
fun providesLibraryRepository( | ||
libraryBookDao: LibraryBookDao, | ||
remoteKeysDao: RemoteKeysDao, | ||
): LocalBookRepository { | ||
return LocalBookRepositoryImpl(libraryBookDao, | ||
remoteKeysDao = remoteKeysDao) | ||
} | ||
|
||
@Provides | ||
@Singleton | ||
fun providesHistoryRepository( | ||
historyDao: HistoryDao, | ||
): HistoryRepository { | ||
return HistoryRepositoryImpl(historyDao) | ||
} | ||
|
||
} |
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
Oops, something went wrong.