-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from Semper-Viventem/update-deppendencies
The app patch 0.27.0-beta
- Loading branch information
Showing
37 changed files
with
1,186 additions
and
132 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
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
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
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
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
13 changes: 5 additions & 8 deletions
13
app/src/main/java/f/cking/software/domain/interactor/RestoreDatabaseInteractor.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 |
---|---|---|
@@ -1,23 +1,20 @@ | ||
package f.cking.software.domain.interactor | ||
|
||
import android.content.Context | ||
import android.net.Uri | ||
import com.jakewharton.processphoenix.ProcessPhoenix | ||
import f.cking.software.TheApp | ||
import f.cking.software.data.database.AppDatabase | ||
import f.cking.software.data.helpers.IntentHelper | ||
import f.cking.software.service.BgScanService | ||
|
||
class RestoreDatabaseInteractor( | ||
private val appDatabase: AppDatabase, | ||
private val context: Context, | ||
private val intentHelper: IntentHelper, | ||
private val application: TheApp, | ||
) { | ||
|
||
suspend fun execute(uri: Uri) { | ||
BgScanService.stop(context) | ||
appDatabase.restoreDatabase(uri, context) | ||
TheApp.instance.restartKoin() | ||
ProcessPhoenix.triggerRebirth(context) | ||
BgScanService.stop(application) | ||
appDatabase.restoreDatabase(uri, application) | ||
application.restartKoin() | ||
ProcessPhoenix.triggerRebirth(application) | ||
} | ||
} |
Oops, something went wrong.