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

Issue #35: Handle device back button #38

Merged
merged 1 commit into from
May 4, 2018

Conversation

csadilek
Copy link
Contributor

@csadilek csadilek commented May 4, 2018

No description provided.

@csadilek csadilek requested a review from pocmo May 4, 2018 06:50
@@ -17,26 +17,38 @@ import mozilla.fenix.components.FeatureLifecycleObserver
import mozilla.fenix.ext.components

class MainActivity : AppCompatActivity() {
private var toolbarFeature: ToolbarFeature? = null
private var sessionFeature: SessionFeature? = null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of making this a nullable type we could make use of Kotlin's lateinit feature here:
https://kotlinlang.org/docs/reference/properties.html

In an activity it's pretty much standard that nothing happens before onCreate() is run. So I think we guarantee that those properties will never be actually null.

@csadilek
Copy link
Contributor Author

csadilek commented May 4, 2018

@pocmo OK, this is updated now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants