Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snorkell.ai] Please review the generated documentation for commit - 84edba8 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions app/src/main/kotlin/com/skydoves/sandwichdemo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,34 @@ class MainActivity : AppCompatActivity() {
viewModelFactory.create(MainViewModel::class.java)
}

/**
* Called when the activity is starting. This is where most initialization should go:
* calling setContentView(int) to inflate the activity's UI, using findViewById(int) to
* programmatically interact with widgets in the UI, calling
* managedQuery(android.net.Uri, String[], String, String[], String) to retrieve
* cursors for data being displayed, etc.
*
* @param savedInstanceState If the activity is being re-initialized after previously
* being shut down then this Bundle contains the data it most recently supplied in
* onSaveInstanceState(Bundle). Note: Otherwise it is null.
*
* @throws RuntimeException if any error occurs during the execution of the method.
*
* @sample
* ```
* override fun onCreate(savedInstanceState: Bundle?) {
* super.onCreate(savedInstanceState)
* DataBindingUtil.setContentView<ActivityMainCoroutinesBinding>(this, R.layout.activity_main_coroutines).apply {
* lifecycleOwner = this@MainActivity
* viewModel = this@MainActivity.viewModel
* adapter = PosterAdapter()
* }
* viewModel.toastLiveData.observe(this) {
* Toast.makeText(this, it, Toast.LENGTH_SHORT).show()
* }
* }
* ```
*/
override fun onCreate(savedInstanceState: Bundle?) {
// sample commit
super.onCreate(savedInstanceState)
Expand Down
Loading