-
```
package com.junyoung.day
import android.content.Context
import android.content.Intent
import android.media.Image
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
i…
-
Hi,
I have an error while trying to use async redirect. Here is the code:
```dart
final GoRouter _router = GoRouter(
routes: [
...
],
redirect: (ctx, state) async {
final logg…
-
想问问DefaultLifecycleObserver 和 livedata的observe 对比哪个更好,因为我用liveEventBus 之前是放到了viewmodel里面传输数据 旧版时候有removeObserve 这个操作 我是直接在实现了DefaultLifecycleObserver 里面remove的
-
Examples:
# Loaders in activity, android.app, content, … deprecated
files:
* app/src/main/java/com/prangesoftwaresolutions/audioanchor/activities/*.java
> Loaders have been deprecated as of …
-
- Move error messages in `strings.xml`
- Replace `Toast` with `Snackbar`
-
I have "large" dataset containing pairs of values, that go like [0;1], [1;2], [2;3], etc, up until [19;20]. I am using ViewModel to load those for me and then, I am observing LiveData. The code I have…
-
### Env
* Android Studio version: Android Studio 4.2 Canary 15
* Firebase Component: Auth UI 6.2.0, Messaging 20.2.3
### Problem
#### Steps to reproduce:
I haven't repro'd this my…
-
I believe that the issues raised in https://github.com/bluelinelabs/Conductor/issues/302 merit addressing.
Due to tight coupling with Fragments, the Arch Component library doesn't play nicely with …
-
目前使用的MVP模式有几率导致严重的内存泄漏+崩溃问题,可能的情况是异步加载完成时Activity已销毁,需要迁移到ViewModel+LiveData来获取更好的生命周期
-
Here's some feedback from our interview.
- NetworkState: Could be a sealed class hierarchy depending on how it's used, e.g. data class Idle(data), object Loading, data class Error(error).
- Model …
ajarl updated
4 years ago