当前位置:网站首页>ViewModelProvider. Of obsolete solution
ViewModelProvider. Of obsolete solution
2022-07-07 07:07:00 【Dream of changing life】
Outdated methods
open fun <T : ViewModel?> createViewModel(activity: FragmentActivity?, cls: Class<T>?): T {
return ViewModelProviders.of(activity!!).get(cls)
}
Replace with
open fun <T : ViewModel?> createViewModel(activity: FragmentActivity?, cls: Class<T>?): T {
return ViewModelProvider(activity!!).get(cls!!)
}
边栏推荐
- Config distributed configuration center
- 7天零基础能考证HCIA吗?华为认证系统学习路线分享
- Stack Title: nesting depth of valid parentheses
- Sword finger offer high quality code
- Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
- 如何给目标机器人建模并仿真【数学/控制意义】
- 场馆怎么做体育培训?
- Please answer the questions about database data transfer
- Matlab tips (30) nonlinear fitting lsqcurefit
- 服装门店如何盈利?
猜你喜欢
Config分布式配置中心
Big coffee gathering | nextarch foundation cloud development meetup is coming
联合索引ABC的几种索引利用情况
Basic process of network transmission using tcp/ip four layer model
Matlab tips (30) nonlinear fitting lsqcurefit
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`问题解决
.net core 访问不常见的静态文件类型(MIME 类型)
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书
Jetpack Compose 远不止是一个UI框架这么简单~
网络基础 —— 报头、封装和解包
随机推荐
Basic process of network transmission using tcp/ip four layer model
Sword finger offer high quality code
Answer to the second stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
2022/07/04学习记录
Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
使用TCP/IP四层模型进行网络传输的基本流程
Please answer the questions about database data transfer
根据IP获取地市
How to share the same storage among multiple kubernetes clusters
关于数据库数据转移的问题,求各位解答下
$refs:组件中获取元素对象或者子组件实例:
大咖云集|NextArch基金会云开发Meetup来啦
From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
Complete process of MySQL SQL
Tool class: object to map hump to underline underline hump
Test of transform parameters of impdp
Please tell me how to monitor multiple schemas and tables by listening to PgSQL
剑指offer-高质量的代码
The startup of MySQL installed in RPM mode of Linux system failed
Maze games based on JS