refactor(core): 收敛重复逻辑并增强运行时健壮性
- 新增 LauncherUtils 工具类,收敛 RunningAppManager、JgyUtils、TimeManager 中三份相同的 gotoLauncher 实现 - 新增 DebounceClickListener 抽象类,封装带最小间隔的点击防抖逻辑 - 将 DeviceFragment 中 RxView 防抖替换为 DebounceClickListener,移除 RxBinding 依赖 - BaseApplication 崩溃计数器改用 SystemClock.elapsedRealtime 避免 NTP 校时重置时间窗 - BaseApplication 无兜底处理器时主动 killProcess 终止进程,避免带损坏状态继续分发消息 - DeviceManager 和 ApkInstallReceiver 改用 getApplicationContext 防止 Activity 泄漏
This commit is contained in:
1 parent
93464e9aa1
commit
957e8d5ecd
10 files changed
+171
-146
No files matched your search
@@ -541,7 +541,6 @@ dependencies {
|
||||
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
|
||||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
||||
|
||||
implementation 'com.jakewharton.rxbinding4:rxbinding:4.0.0'
|
||||
implementation 'com.jeremyliao:live-event-bus-x:1.7.3'
|
||||
|
||||
//Google
|
||||
|
||||
Reference in new issue
Block a user