TakWolf-Deprecated / CNode-Material-Design

CNode 社区第三方 Android 客户端,原生 App,Material Design 风格,支持夜间模式。
https://cnodejs.org
Apache License 2.0
1.34k stars 347 forks source link

改善应用架构 #76

Closed TakWolf closed 2 years ago

TakWolf commented 6 years ago

现有结构 P 对 V 持有不变引用,异步请求对 P 持有隐式引用,因此 V 存在内存泄露。

改为 P 对 V 持有弱引用,异步回调中总是先判断 V 是否存活,再执行逻辑。

TakWolf commented 5 years ago

可能的方案:

https://developer.android.com/jetpack/docs/getting-started