google / iosched

The Google I/O Android App
Apache License 2.0
21.77k stars 6.2k forks source link

I followed rule of 3. #418

Open AhmadKazimi opened 2 years ago

AhmadKazimi commented 2 years ago

I found that there's redundant code when it comes to the below code block

lifecycleScope.launch { repeatOnLifecycle(Lifecycle.State.STARTED) {} }

so I just replace it with ext function called **collectLifecycleFlow()**
for AppCompatActivity and Fragment 
google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.