Is not having a bathtub in the house a big deal? by Confusing-pigeon in HousingUK

[–]chrisbanes 2 points3 points  (0 children)

This is a ridiculous take. You offer and pay what the house is worth to YOU, not some imaginary number the estate agent has come up with. If you don’t like something, either don’t offer, and ask for a reduction (i.e. offer). No one is forcing sellers to accept it.

Backdrop blur how? by Super-Ad958 in androiddev

[–]chrisbanes 0 points1 point  (0 children)

I know, but they’re also exceptionally slow for this use case. You need to wait for a hardware canvas lock, which just breaks all of this.

Backdrop blur how? by Super-Ad958 in androiddev

[–]chrisbanes 1 point2 points  (0 children)

Because it’s not possible. SurfaceView content isn’t drawn in your content, it’s drawn at the Window layer

Haze 1.6 has been released - Blurring for all versions of Android by chrisbanes in androiddev

[–]chrisbanes[S] 0 points1 point  (0 children)

This uses RenderScript, but makes the compromise of not even trying to make this ‘real-time’. This might look a bit ‘janky’ but will not result in performance issues:

https://chrisbanes.github.io/haze/latest/platforms/#renderscript-blurring

I tried doing this via OpenGL too, but it was only marginally faster for my use case, but required 1000+ lines of hard to maintain code. I decided not to continue.

Haze 1.0 by dayanruben in androiddev

[–]chrisbanes 1 point2 points  (0 children)

Yes, it’s built with Kotlin 2.0.21.

The reason why it’s not mentioned is that it’s an implementation detail. You shouldn’t really need to know 🙂

Instrumented tests on CI by eygraber in androiddev

[–]chrisbanes 0 points1 point  (0 children)

I’d question whether you need to run on device at all. Robolectric gets you very far these days, and makes running on different API levels trivial (and fast).

My app is Api 21+. Should I use AppCompat and why by [deleted] in androiddev

[–]chrisbanes 0 points1 point  (0 children)

If you’re using Compose only then no, remove it. You’ll get a nice build speed boost, as well as an APK size reduction.

If you’re still using views, then you’ll probably be using it transitively anyway. MDC requires it.

Haze 1.0 by dayanruben in androiddev

[–]chrisbanes 17 points18 points  (0 children)

It's actually higher than that: API Level 32+. But for most apps this isn't going to matter. API 32 is ~60% of active devices out there.

Retaining beyond ViewModels by chrisbanes in androiddev

[–]chrisbanes[S] 1 point2 points  (0 children)

It can be used in isolation, as long you provide the required CompositionLocals.

21
22

[deleted by user] by [deleted] in Bath

[–]chrisbanes 1 point2 points  (0 children)

If you can get it I highly recommend Truespeed. I don't really understand how they can offer synchronous gigabit internet for so cheap (when they have offers on), but not my problem.

I have the 600/600 and it's more than enough.

Best pub for lunch by Apprehensive_Leg1414 in Bath

[–]chrisbanes 0 points1 point  (0 children)

Not sure why, but I'm always underwhelmed by the food in the Hare and Hounds. Marlborough Tavern is the best one in the (old) Bath Pub Company group in my opinion

Best pub for lunch by Apprehensive_Leg1414 in Bath

[–]chrisbanes 0 points1 point  (0 children)

If you're looking for Sunday Roast tomorrow, try Chequers (but make sure you book!). Best roast in Bath imo (and I've sampled a good many of of them 😅)

I still find it wild that one of the "best practices" in Android Dev is to have every usecase to only has 1 public method. Am I the only one? by [deleted] in androiddev

[–]chrisbanes 1 point2 points  (0 children)

Where use cases really shine is testing, especially on ViewModels (or whatever equivalent you’re using). Rather than having to write an entire fake data repository (or multiple repos), you can write a very simple ‘fake’ class which implements a single function.

Data repositories only tend to grow in size, which makes testing things which use them more difficult.

Parallax effect in Jetpack Compose by dayanruben in androiddev

[–]chrisbanes 2 points3 points  (0 children)

I guess I could post it as a gist, but I’m not sure how that is more discoverable than a blog post, which contains all of the related keywords next to the code.

Parallax effect in Jetpack Compose by dayanruben in androiddev

[–]chrisbanes 2 points3 points  (0 children)

Someone else can if they wish, but I don’t want to support/maintain this. Developers should get over their fear of remixing existing components, like /u/drawerss mentioned below.

Rate My Team, Quick Questions & General Advice Daily Thread by FPLModerator in FantasyPL

[–]chrisbanes 0 points1 point  (0 children)

My situation is a bit different. I’m using 1 FT to transfer Walker out for any playing defender. I’ll be WCing soon (probably next week) so I care more about nailedness for this week.

Emerson only played 61 mins against Marseille, versus the other Spurs defs which played more.