reset edit .gitignore

pull/241/head
383bjz82bu 5 years ago
parent f3aeba29bf
commit 1d768c150a
  1. 8
      .gitignore
  2. 13
      app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt

8
.gitignore vendored

@ -13,11 +13,3 @@ node_modules/
/app/google
/app/gradle.properties
package-lock.json
*__gen.go
*__ignore.go
*.swp
*.swo
~i_*
ig_*
zzzig_*

@ -122,8 +122,17 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog.
}
"recordLog" -> LogUtils.upLevel()
PreferKey.einkMode -> {
postEvent(EventBus.RECREATE, "")
ReadBookConfig.pageAnim = 4
//既然是 E-Ink 模式,为什么不一步到位呢
if (AppConfig.isEInkMode) {
ReadBookConfig.pageAnim = 4
putPrefInt("colorPrimary", getCompatColor(R.color.white))
putPrefInt("colorAccent", getCompatColor(R.color.black))
putPrefInt("colorBackground", getCompatColor(R.color.white))
putPrefInt("colorBottomBackground", getCompatColor(R.color.white))
AppConfig.isNightTheme = false
App.INSTANCE.applyDayNight()
postEvent(EventBus.RECREATE, "")
}
}
}
}

Loading…
Cancel
Save