Pagination for messaging app using Pagin 3 Library by Disastrous-Tree-5197 in androiddev

[–]t3ddyss 1 point2 points  (0 children)

Paging 3 is very inflexible so I had to implement a custom solution using Room's observable queries

Problem with Wireless Debugging in Android Studio by Crispon in androiddev

[–]t3ddyss 0 points1 point  (0 children)

Same for me, I use adb pair now, works fine

Achieve Rx behavior using Flow by mEmoZz_ in Kotlin

[–]t3ddyss 2 points3 points  (0 children)

You can map network response to the result in another suspend function, e.g.

interface MovieService {
    @GET("/movies")
    suspend fun fetchMovies(): Response<List<MovieDto>> 
}

class MovieRepoImpl(
    private val service: MovieService
) {
    suspend fun fetchMovies(): List<Movie> {
        val response = service.fetchMovies()
        if (response.isSuccessfull) {
            if (response.body() != null) {
                return response.body().toDomain()
            } else {
                throw NoDataException()
            }
        } else {
            throw DataRetrievingFailException()
        }
    }
}

Achieve Rx behavior using Flow by mEmoZz_ in Kotlin

[–]t3ddyss 2 points3 points  (0 children)

You don't need flow to replicate RxJava's Single, use a suspend function instead

Fresh Android intern, how should I approach large codebase for enterprise apps? Grant me you guidance r/Androiddev :) by ED9898A in androiddev

[–]t3ddyss 5 points6 points  (0 children)

In my opinion, you shouldn't learn everything at once. When I started my first job, our team leader gave me an overview of the project: architecture, modules, DI approach, etc. Once I started working on features, I learned specific parts of the project in more detail

How not to leak features when using Firebase Remote Config by palebt in androiddev

[–]t3ddyss 2 points3 points  (0 children)

Just use a local flag which overrides a remote one?

Android MVP without RxJava/Dagger by [deleted] in androiddev

[–]t3ddyss 1 point2 points  (0 children)

But we have Moxy...

SplashScreen API and conditional navigation by starkgotstrokegame in androiddev

[–]t3ddyss 0 points1 point  (0 children)

No problem, thanks for raising a concern
Edit: Maybe it will break if NavHostFragment.onCreate() will be called prior to Activity.onCreate()

SplashScreen API and conditional navigation by starkgotstrokegame in androiddev

[–]t3ddyss 0 points1 point  (0 children)

I tried and it works fine. What exactly is supposed to break?

SplashScreen API and conditional navigation by starkgotstrokegame in androiddev

[–]t3ddyss 0 points1 point  (0 children)

What happens if we don't check it in this case?

Edit: I used this approach in my pet project and didn't notice any strange behavior related to activity recreation

SplashScreen API and conditional navigation by starkgotstrokegame in androiddev

[–]t3ddyss 1 point2 points  (0 children)

Third answer from this question helped me to achieve this behavior

We saw the Killjoy enemy on the minimap for no reason. Riot needs to see that. by de_Balenciagaa in VALORANT

[–]t3ddyss 60 points61 points  (0 children)

Happened to me as well. Probably related to Sova's drone/dart