Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
/ioschedPublic archive

I followed rule of 3.#418

Open
AhmadKazimi wants to merge1 commit intogoogle:main
base:main
Choose a base branch
Loading
fromAhmadKazimi:new_ext_fun

Conversation

AhmadKazimi
Copy link

@AhmadKazimiAhmadKazimi commentedApr 24, 2022
edited
Loading

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

…Lifecycle(Lifecycle.State.STARTED) {}} I found many usage in same level and created ext. fun to handle flow collect operation.
@google-cla
Copy link

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 theCLA check for this pull request.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@AhmadKazimi

[8]ページ先頭

©2009-2025 Movatter.jp