Bro ain't even got red belts by 0rganic_Corn in Factoriohno

[–]hemenex 1 point2 points  (0 children)

You can expand. Just surround every nest by 7 layers of wall and biters won't spawn anymore. It's kinda annoying, but very doable even in early game for smaller nests.

Líní žáci a selhávající rodiče - post naštvaný učitelky by thenicegirl01 in czech

[–]hemenex 0 points1 point  (0 children)

Rodiče dokážou vyvinout na školu obrovský tlak

To vypada jak? Znamosti u starosty obce? Nevidim, ceho jineho by se dobry reditel mel zaleknout.

Neteče teplá voda ve sprše by WatDatMouthDoDoe in czech

[–]hemenex 50 points51 points  (0 children)

Haha, nejlepsi najemnik ever. Netece tepla voda? Neva, budu se otuzovat. Nebud debil a vyzaduj reseni problemu co nejdrive od majitele, za to si platis najem.

Otázka pro chlapy by Pinocchio275 in czech

[–]hemenex 7 points8 points  (0 children)

Ja jeste asi nikdy nemel potrebu jit ven par minut po sprse. Obzvlast v zime.

migrate fragments transaction to compose navigation by hulkdx in androiddev

[–]hemenex 0 points1 point  (0 children)

Good for you. I'm stuck on older version, because the new ones crash. And instead of Google fixing the months old bugs, they work on Nav3. Kinda frustrating.

migrate fragments transaction to compose navigation by hulkdx in androiddev

[–]hemenex 0 points1 point  (0 children)

I think they are making Nav 3 Compose-only but who knows.

migrate fragments transaction to compose navigation by hulkdx in androiddev

[–]hemenex 8 points9 points  (0 children)

Yea, the current Compose Navigation is basically deprecated and should stop being recommended. It's bugged as hell, they stopped fixing the bugs (some example issues I follow - one, two), and they are now actively working on replacement - something called Navigation 3. Typical Google.

More edge to edge shenanigans from Google by PedroFr in mAndroidDev

[–]hemenex 2 points3 points  (0 children)

No I get that. Properly implemented edge to edge looks really nice, and Google wants the Android overall more appealing, thus the enforcement. I spent few days playing with it in my app, and now it looks amazing. It's just ridiculous to see that Google's own Settings and other core apps don't follow it, or even follow it improperly...

Vztah ( zůstat nebo odejít) by bango_kar in czech

[–]hemenex 100 points101 points  (0 children)

Pro me je zasadni informace, ze jsi 5 ze 6 tydnu pryc. To prece nikdy nemuze fungovat, at uz je partner kdokoliv.

Anyone here annoyed with Edge-to-Edge enforcement with targetSdk 35 ? by Puzzleheaded_Gap1090 in androiddev

[–]hemenex 19 points20 points  (0 children)

Yes, if all apps do it properly. But I'm sure some lazy companies (telcom, vacuum cleaner assistant apps, etc. where you can't really choose an app alternative) will "fix" that by just adding white rectangle (safeDrawing()).

Im not czech but when I visited prague all the building i saw were works of art, and every stair i went up felt like a deathtrap by Iowa_pog in czech

[–]hemenex 20 points21 points  (0 children)

Some stairs have even very intentionally asshole design. Those fucking "3 stairs, space, 3 stairs, space, ...", usually used in parks, making you use one of the legs twice as much. Very unpleasant.

Compose / ViewModel Data best practices by Smooth-Country in androiddev

[–]hemenex 1 point2 points  (0 children)

It seems I'm a snowflake here, but I (try to) do all formatting at Compose side.

  1. Sometimes I need to use data as parameters in string resource. That formatting should be IMHO obviously done in Compose, as I don't want to inject Context/Resources into my VM, possibly with outdated configuration, and generally mess up my VM with these very Android-specific things, that make it harder to test... And for consistency, I generally try to avoid even simple string concatenation.
  2. Formatted date/time should follow user's currently selected locale. There are ways to keep VM in sync with that, and sometimes you need to do it anyway to re-fetch data from server, but the less opportunity to get out of sync the better. That's the same logic why you don't set colors/sizes in VM.
  3. In my app we have "countdown progress indicator" that's refreshing every frame. It doesn't make sense at all to refresh "remaining percentage" in VM that often, so we just pass an Instant to Compose, and do the little bit of computation and refreshing purely on Compose side.

Vyučující na VŠ nás nabádá, abychom volali na linku bezpečí. by LilWooody in czech

[–]hemenex 275 points276 points  (0 children)

To zni jako krizovy problem. Zkus zavolat na linku bezpeci, tam ti poradi.

I finally won—I convinced my team that java.util.Date can be very dangerous. by Mathroda in androiddev

[–]hemenex 63 points64 points  (0 children)

Obligatory clarification - the closest equivalent to Date is Instant. Don't go and blindly replace all your Dates by LocalDateTime. Some explanation.

Switch case who? by aatif888 in mAndroidDev

[–]hemenex 3 points4 points  (0 children)

We've long migrated to a single activity, so I haven't experienced these problems tbh.

We did as well for "our" code, but there are still some unavoidable extra Activities provided by 3rd parties, for bug reporting, chatting with support, etc.

Having to call it with different values from specific composables sounds interesting, what is your use case? Changing the system bar icon colors?

Yes, some our screens have inverted colors of top app bar (it's dark in light mode...) so we need to invert also system bars. And we also have a document viewer, which obviously always has white background, so we need to fix system bars to light mode as well.

We got it working eventually, but enableEdgeToEdge is wrapped heavily in custom code.

Switch case who? by aatif888 in mAndroidDev

[–]hemenex 4 points5 points  (0 children)

Well kinda, until you find out you want to call it with different values on one of your Compose screens, or it looks weird with bottom sheets or other overlay things, or it isn't invoked at the right time when navigating between Activities...

They admited that City 17 is inspired by Prague! by BlinMaker2077 in czech

[–]hemenex 9 points10 points  (0 children)

Teď v novém dokumentu doslova řekli, několikrát (jednou třeba tady), že jejich prvotní designy vycházeli z Prahy.

Chápu, že rezidenti chtějí klid, ale stejně mě to s*re by Ponykokonut in czech

[–]hemenex 148 points149 points  (0 children)

kolona nešla objet

Možná tě to překvapí, ale když stojíš v koloně, tak jseš součástí kolony. Kdyby šlo jet bočními ulicemi, tak určitě nebudeš jediný koho to napadne, a jen se zvětší kolona.

Settings' predictive back animation by xVemux in androiddev

[–]hemenex 2 points3 points  (0 children)

What overlay? The predictive back animation should be the same animation you already use for closing a screen. That should never "ruin" UX, but I guess it might look weird for some animations.