force white menu items at viewpager activity

This commit is contained in:
tibbi 2022-04-04 23:20:29 +02:00
parent 7eac78411e
commit 2ea542b461
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:d8a0479340' implementation 'com.github.SimpleMobileTools:Simple-Commons:38f1c0331c'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'

View File

@ -38,7 +38,6 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
public override fun onCreate(savedInstanceState: Bundle?) { public override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.fragment_holder) setContentView(R.layout.fragment_holder)
if (checkAppSideloading()) { if (checkAppSideloading()) {
return return
} }
@ -173,6 +172,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
} }
} }
top_shadow.layoutParams.height = statusBarHeight + actionBarHeight
checkNotchSupport() checkNotchSupport()
showSystemUI(true) showSystemUI(true)
val bundle = Bundle() val bundle = Bundle()

View File

@ -222,7 +222,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
updateBottomActionIcons(currentMedium) updateBottomActionIcons(currentMedium)
} }
updateMenuItemColors(menu, baseColor = Color.BLACK) updateMenuItemColors(menu, forceWhiteIcons = true)
return true return true
} }