Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Commit 0ac3e53

Browse files
colintheshotsboek
authored andcommitted
Fixes #1050: Fenix sessions save and close upon opening
1 parent 56f4174 commit 0ac3e53

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ class HomeFragment : Fragment(), CoroutineScope {
235235
is SessionsAction.Select -> {
236236
launch {
237237
requireComponents.core.sessionStorage.archive(requireComponents.core.sessionManager)
238-
}
239-
it.archivedSession.bundle.restoreSnapshot()?.apply {
240-
requireComponents.core.sessionManager.restore(this)
241-
homeScrollView.smoothScrollTo(0, 0)
238+
it.archivedSession.bundle.restoreSnapshot()?.apply {
239+
requireComponents.core.sessionManager.restore(this)
240+
homeScrollView.smoothScrollTo(0, 0)
241+
}
242242
}
243243
}
244244
is SessionsAction.Delete -> {

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task clean(type: Delete) {
4444
detekt {
4545
// The version number is duplicated, please refer to plugins block for more details
4646
version = "1.0.0.RC9.2"
47-
input = files("$projectDir/app", "$projectDir/architecture")
47+
input = files("$projectDir/app/src", "$projectDir/architecture/src")
4848
config = files("$projectDir/config/detekt.yml")
4949
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
5050

0 commit comments

Comments
 (0)