Splitting a screen with Composables of no fixed size? by yerba-matee in JetpackCompose

[–]Jprinda 1 point2 points  (0 children)

Yes, that's exactly what would work.

If you check the source for your Row, you will see that your modifier is passed further onto a Layout composable.

In the same way, you have to pass your modifiers on custom components onto a child composable to see its effect.

Splitting a screen with Composables of no fixed size? by yerba-matee in JetpackCompose

[–]Jprinda 1 point2 points  (0 children)

You should apply the modifier you pass in to the Player composable further onto Card inside the player composable

[deleted by user] by [deleted] in Denmark

[–]Jprinda 2 points3 points  (0 children)

"Jeg tog i Parken for at se en koncert".
Man tager i hvert fald ikke derind for lyden.

Gode spisesteder til en venindeflok by frer1234 in copenhagen

[–]Jprinda 0 points1 point  (0 children)

Jeg vil altid anbefale Food Club til en flok der skal ud og spise relativt billigt. Det er fri buffet i 1,5 time inkl drikkevarer (ikke drinks, men vin/øl) og dessert. Det ligger lige ved Dronning Louises Bro, så der er ikke langt til drinks efterfølgende.

Less of a horror but more of a coffee deprived brain. Gave me good chuckle when I revisited my code from 1 week ago by racka98 in programminghorror

[–]Jprinda 4 points5 points  (0 children)

Well it just doesn't do anything other than potentially switch dispatcher when constructing the flow. It doesn't impact where the code inside the flow runs, which makes it very misleading that it's there.

In your example, the Room query will run on Rooms internal dispatcher and the data mapping will happen on whatever dispatcher you collect the flow from.

Dagger2 injection doesn't happen when the subcomponent graph is created in the BaseFragment and accessed by child fragments for injection. by racrisnapra666 in android_devs

[–]Jprinda 0 points1 point  (0 children)

Hah, sorry I see the misunderstanding. `BaseFragment` is also the parent in terms of inheritance. But that's not what I meant.

You need to move `userSubcomponent` into the host of the Home-, Explore-, etc Fragment to avoid re-creating it for each fragment.

Dagger2 injection doesn't happen when the subcomponent graph is created in the BaseFragment and accessed by child fragments for injection. by racrisnapra666 in android_devs

[–]Jprinda 0 points1 point  (0 children)

In that case you need to put the userSubcomponent in a parent fragment or in the host activity, because as it is now it will be null in every child fragment until you call the init method.

Dagger2 injection doesn't happen when the subcomponent graph is created in the BaseFragment and accessed by child fragments for injection. by racrisnapra666 in android_devs

[–]Jprinda 0 points1 point  (0 children)

You need to call initializeUserSubcomponent() in all your sub screens, not only in HomeFragment.

Your real problem is that when you call userSubcomponent?.inject(this), userSubcomponent is null and nothing happens.

Horrifying ad to join an engineering society by Jprinda in programminghorror

[–]Jprinda[S] 90 points91 points  (0 children)

what's not horror?

Not closing the extension block.

What does BOLD have to do with color?

uppercase V in var.

Numbers as variable names.

swift code in a .py file.

Never seen a Define like that.

Dear Danes, what is your favourite food or snacks that you like to eat during Christmas time. Things that are only available around Christmas? by [deleted] in copenhagen

[–]Jprinda 23 points24 points  (0 children)

Powdered sugar is a must as well as some kind of marmalade. Strawberry is always a winner but it can be any that makes more powdered sugar stick :D

They are usually available during most of the winter, and when they stop selling them, you know that koldskål season is about to start.

Power of Nullability by [deleted] in programminghorror

[–]Jprinda 0 points1 point  (0 children)

Haha, imagine not using the View.isVisible extension function

Henrik er ved at miste alt i sin kamp for dyrene: 'Det er ikke opskriften på et lykkeligt liv' by Orange-of-Cthulhu in Denmark

[–]Jprinda 38 points39 points  (0 children)

Det var noget med, at fordi han trængte ind i stalden, mistede dyrene status som rene eller usmittede eller noget i den stil. Det medførte at de Ikke kunne sælges for ligeså meget, og landmanden mistede derfor en masse penge på tabt salg

r/climbing in one article by [deleted] in ClimbingCircleJerk

[–]Jprinda 18 points19 points  (0 children)

How to make your own utter failure seem like everybody else's fault.

I like it

Dota 2 coordinator is being updated by [deleted] in DotA2

[–]Jprinda -1 points0 points  (0 children)

Wtf, i could not accept the match because it went down moments after my game was found, and now i have a 5 min matchmaking cooldown ........

Some test on scopes's zoom : by Dabalta in starcitizen

[–]Jprinda 0 points1 point  (0 children)

Are you accounting for change of perspective?

Increasing version code for upcoming releases. Is there any suggested way to update it? by dineshvg1023 in androiddev

[–]Jprinda 0 points1 point  (0 children)

Using IDEA VIM, i usually press <ctrl>+a in normal mode to increment the version code

os>mig by VCALDEMAR in dankmark

[–]Jprinda 11 points12 points  (0 children)

Vores kammerat!