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

Feat/sub categorys #195

Merged
merged 12 commits into from
Oct 12, 2022
Merged

Feat/sub categorys #195

merged 12 commits into from
Oct 12, 2022

Conversation

kdiakonidze
Copy link
Collaborator

No description provided.

@Nodrex Nodrex marked this pull request as ready for review October 1, 2022 21:09
@Nodrex Nodrex requested review from Nodrex, shalva97, nmgalo, likaGlonti and tkhat and removed request for Nodrex and shalva97 October 1, 2022 21:10
@Nodrex Nodrex requested a review from tkhat October 8, 2022 06:51
@kdiakonidze
Copy link
Collaborator Author

guys let's give some feedback or approve it @Nodrex @shalva97

@EntryPoint
@InstallIn(ActivityComponent::class)
interface ViewModelFactoryProvider {
fun quizViewModelFactory(): QuizViewModel.Factory
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just pass bundle arguments to the next screen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I need QuizCategory at the viewModel initialization, thats why I made this factory

@Nodrex
Copy link
Owner

Nodrex commented Oct 9, 2022

guys let's give some feedback or approve it @Nodrex @shalva97

I agree, since i also made changes to this branch let others review it
@shalva97
@tkhat
@nmgalo
@likaGlonti
@Vazhapp

scope.launch {
modalBottomSheetState.snapTo(ModalBottomSheetValue.Hidden)
//snapTo is quicker then hide
}.invokeOnCompletion {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not have navigator?.navigate(TechnicalTestsScreenDestination(quizCategory)) inside launch {} ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's a bug fix by @Nodrex as I guess, the bottomSheet stays on screen otherwise

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, @kdiakonidze is right, I fixed bottomSheet stays on screen Bug with this solution.
If you @shalva97 have better solution please suggest

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

as I check it works without "invokeOnCompletion" block. just calling navigation after bottomSheet hide method in launch block. Any objections on that @Nodrex ?

Copy link
Owner

Choose a reason for hiding this comment

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

It did not always worked for me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, lets stay on solution by Nodar

@Nodrex Nodrex requested a review from shalva97 October 9, 2022 15:07
@Nodrex Nodrex merged commit 0df9128 into main Oct 12, 2022
@Nodrex Nodrex deleted the feat/sub-categorys branch October 12, 2022 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants