当前位置:网站首页>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!!)
}
边栏推荐
- 2022年全国所有A级景区数据(13604条)
- . Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
- Matlab tips (30) nonlinear fitting lsqcurefit
- 工具类:对象转map 驼峰转下划线 下划线转驼峰
- MYSQL----导入导出&视图&索引&执行计划
- Stack and queue-p79-10 [2014 unified examination real question]
- 分布式id解决方案
- 【NOI模拟赛】区域划分(结论,构造)
- jdbc数据库连接池使用问题
- How to do sports training in venues?
猜你喜欢

The latest trends of data asset management and data security at home and abroad

大促过后,销量与流量兼具,是否真的高枕无忧?

Sword finger offer high quality code

Basic process of network transmission using tcp/ip four layer model

使用TCP/IP四层模型进行网络传输的基本流程

Anr principle and Practice

mysql查看bin log 并恢复数据

带你刷(牛客网)C语言百题(第一天)

MOS tube parameters μ A method of Cox

化工园区危化品企业安全风险智能化管控平台建设四大目标
随机推荐
【mysqld】Can't create/write to file
【luogu P1971】兔兔与蛋蛋游戏(二分图博弈)
What books can greatly improve programming ideas and abilities?
sqlserver多线程查询问题
How to do sports training in venues?
Learning records on July 4, 2022
oracle如何备份索引
毕业设计游戏商城
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
DB2获取表信息异常:Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][1065][12306][4.25.13]
华为机试题素数伴侣
请教一个问题,flink oracle cdc,读取一个没有更新操作的表,隔十几秒就重复读取全量数据
Basic process of network transmission using tcp/ip four layer model
Jetpack Compose 远不止是一个UI框架这么简单~
JWT的基础介绍
AVL树的实现
Big coffee gathering | nextarch foundation cloud development meetup is coming
Redhat5 installing vmware tools under virtual machine
请问 flinksql对接cdc时 如何实现计算某个字段update前后的差异 ?