pull/32/head
Awesome 6 years ago
parent e42adff0be
commit 1085b25995
  1. 2
      app/src/main/java/io/legado/app/base/BaseActivity.kt
  2. 3
      app/src/main/res/values/styles.xml

@ -26,8 +26,8 @@ abstract class BaseActivity<VM : ViewModel> : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
initTheme() initTheme()
super.onCreate(savedInstanceState)
setupSystemBar() setupSystemBar()
super.onCreate(savedInstanceState)
setContentView(layoutID) setContentView(layoutID)
onViewModelCreated(viewModel, savedInstanceState) onViewModelCreated(viewModel, savedInstanceState)
} }

@ -31,7 +31,8 @@
<item name="actionOverflowMenuStyle">@style/Style.PopupMenu</item> <item name="actionOverflowMenuStyle">@style/Style.PopupMenu</item>
<item name="android:itemTextAppearance">@style/Style.MenuItemText</item> <item name="android:itemTextAppearance">@style/Style.MenuItemText</item>
<item name="android:popupMenuStyle">@style/Style.PopupMenu</item> <item name="android:popupMenuStyle">@style/Style.PopupMenu</item>
<item name="android:windowTranslucentStatus">true</item> <item name="android:statusBarColor">@color/transparent</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style> </style>
<style name="AppTheme.AppBarOverlay.Light" parent="ThemeOverlay.AppCompat.Light"> <style name="AppTheme.AppBarOverlay.Light" parent="ThemeOverlay.AppCompat.Light">

Loading…
Cancel
Save