mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Grab a activity fix from Tachi
This commit is contained in:
@@ -19,6 +19,12 @@ class MainActivity : AppCompatActivity() {
|
||||
appComponent.appMigrations.runMigrations()
|
||||
}
|
||||
|
||||
// Do not let the launcher create a new activity http://stackoverflow.com/questions/16283079
|
||||
if (!isTaskRoot) {
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
||||
AndroidDownloadService.start(this, Actions.START)
|
||||
|
||||
val uiHooks = appComponent.getHooks()
|
||||
|
||||
Reference in New Issue
Block a user