Created
October 25, 2018 12:10
-
-
Save abohomol/bc6cf5c6e6979dc74e564975d39a9bda to your computer and use it in GitHub Desktop.
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
... | |
@JvmStatic fun newIntent(context: Context): Intent { | |
return Intent(context, SomeActivity::class.java) | |
} | |
/* Now you can omit Companion reference in Java: */ | |
Intent intent = SomeActivity.newIntent(context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment