|
|
@ -90,6 +90,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>() |
|
|
|
|
|
|
|
|
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean { |
|
|
|
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean { |
|
|
|
menu.findItem(R.id.menu_enable_replace)?.isChecked = AppConfig.exportUseReplace |
|
|
|
menu.findItem(R.id.menu_enable_replace)?.isChecked = AppConfig.exportUseReplace |
|
|
|
|
|
|
|
menu.findItem(R.id.menu_export_no_chapter_name)?.isChecked = AppConfig.exportNoChapterName |
|
|
|
menu.findItem(R.id.menu_export_web_dav)?.isChecked = AppConfig.exportToWebDav |
|
|
|
menu.findItem(R.id.menu_export_web_dav)?.isChecked = AppConfig.exportToWebDav |
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
return super.onMenuOpened(featureId, menu) |
|
|
|
} |
|
|
|
} |
|
|
@ -121,6 +122,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>() |
|
|
|
} |
|
|
|
} |
|
|
|
R.id.menu_export_all -> exportAll() |
|
|
|
R.id.menu_export_all -> exportAll() |
|
|
|
R.id.menu_enable_replace -> AppConfig.exportUseReplace = !item.isChecked |
|
|
|
R.id.menu_enable_replace -> AppConfig.exportUseReplace = !item.isChecked |
|
|
|
|
|
|
|
R.id.menu_export_no_chapter_name -> AppConfig.exportNoChapterName = !item.isChecked |
|
|
|
R.id.menu_export_web_dav -> AppConfig.exportToWebDav = !item.isChecked |
|
|
|
R.id.menu_export_web_dav -> AppConfig.exportToWebDav = !item.isChecked |
|
|
|
R.id.menu_export_folder -> { |
|
|
|
R.id.menu_export_folder -> { |
|
|
|
exportPosition = -1 |
|
|
|
exportPosition = -1 |
|
|
|