Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
GitFox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yamko
GitFox
Commits
8efa41d1
Commit
8efa41d1
authored
Jun 02, 2019
by
Konstantin Tskhovrebov
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove AppLauncher as singleton for application.
Because app can doesn't restart between activity restarts.
parent
625507e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
app/src/main/java/ru/terrakok/gitlabclient/di/module/AppModule.kt
...main/java/ru/terrakok/gitlabclient/di/module/AppModule.kt
+0
-3
app/src/main/java/ru/terrakok/gitlabclient/presentation/AppLauncher.kt
...java/ru/terrakok/gitlabclient/presentation/AppLauncher.kt
+2
-2
No files found.
app/src/main/java/ru/terrakok/gitlabclient/di/module/AppModule.kt
View file @
8efa41d1
...
...
@@ -19,7 +19,6 @@ import ru.terrakok.gitlabclient.model.system.AppSchedulers
import
ru.terrakok.gitlabclient.model.system.ResourceManager
import
ru.terrakok.gitlabclient.model.system.SchedulersProvider
import
ru.terrakok.gitlabclient.model.system.message.SystemMessageNotifier
import
ru.terrakok.gitlabclient.presentation.AppLauncher
import
toothpick.config.Module
/**
...
...
@@ -62,7 +61,5 @@ class AppModule(context: Context) : Module() {
)
bind
(
AppInfoRepository
::
class
.
java
)
bind
(
AppInfoInteractor
::
class
.
java
)
bind
(
AppLauncher
::
class
.
java
).
singletonInScope
()
}
}
\ No newline at end of file
app/src/main/java/ru/terrakok/gitlabclient/presentation/AppLauncher.kt
View file @
8efa41d1
...
...
@@ -13,9 +13,9 @@ class AppLauncher @Inject constructor(
private
val
router
:
Router
)
{
private
val
isSignedIn
=
launchInteractor
.
signInToSession
()
fun
coldStart
()
{
val
isSignedIn
=
launchInteractor
.
signInToSession
()
val
rootScreen
=
if
(
isSignedIn
)
Screens
.
DrawerFlow
else
Screens
.
AuthFlow
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment