mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
set bottom actions padding at devices without a navigation bar too
This commit is contained in:
@ -208,13 +208,14 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||||||
right += context!!.navigationBarWidth
|
right += context!!.navigationBarWidth
|
||||||
bottom += context!!.navigationBarHeight
|
bottom += context!!.navigationBarHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context!!.config.bottomActions) {
|
|
||||||
bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
|
|
||||||
}
|
|
||||||
mTimeHolder!!.setPadding(left, top, right, bottom)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (context!!.config.bottomActions) {
|
||||||
|
bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
|
||||||
|
}
|
||||||
|
|
||||||
|
mTimeHolder!!.setPadding(left, top, right, bottom)
|
||||||
|
|
||||||
mCurrTimeView = mView!!.video_curr_time
|
mCurrTimeView = mView!!.video_curr_time
|
||||||
mSeekBar = mView!!.video_seekbar
|
mSeekBar = mView!!.video_seekbar
|
||||||
mSeekBar!!.setOnSeekBarChangeListener(this)
|
mSeekBar!!.setOnSeekBarChangeListener(this)
|
||||||
|
Reference in New Issue
Block a user