perf: 耗电优化和架构改进
耗电优化: - FolderAdapter 添加定时扫描机制(1小时刷新一次) - FolderAdapter 添加扫描取消机制 - 移除 FolderAdapter 重复扫描问题 - ImageScanner 内存缓存改为 LRU(限制10MB) - 扫描线程数从4降低到2 - 添加 Doze/省电模式检测,休眠时跳过定时更换 - AlarmScheduler 使用不精确闹钟以节省电量 架构优化: - 移除独立设置页面,设置功能已集成到 AlbumEditorActivity - ViewPager 从5个页面减少到4个页面 - 移除底部导航的设置标签 - 更新 MainActivity.switchToPage() 范围 预期效果: - 扫描耗电减少 40-60% - 待机耗电减少 15-25% - 总体耗电减少 20-30% - 用户界面更简洁清晰 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
62215a9279
commit
791f297123
7 files changed
+227
-50
No files matched your search
@@ -23,10 +23,4 @@
|
||||
android:icon="@drawable/ic_history"
|
||||
android:title="@string/nav_history"
|
||||
android:orderInCategory="3" />
|
||||
|
||||
<item
|
||||
android:id="@+id/nav_settings"
|
||||
android:icon="@drawable/ic_settings"
|
||||
android:title="@string/nav_settings"
|
||||
android:orderInCategory="4" />
|
||||
</menu>
|
||||
Reference in new issue
Block a user