set bottom actions padding at devices without a navigation bar too
This commit is contained in:
parent
6a216fc675
commit
d65045220d
1 changed files with 6 additions and 5 deletions
|
@ -208,12 +208,13 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
right += context!!.navigationBarWidth
|
right += context!!.navigationBarWidth
|
||||||
bottom += context!!.navigationBarHeight
|
bottom += context!!.navigationBarHeight
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (context!!.config.bottomActions) {
|
if (context!!.config.bottomActions) {
|
||||||
bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
|
bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
|
||||||
}
|
}
|
||||||
|
|
||||||
mTimeHolder!!.setPadding(left, top, right, bottom)
|
mTimeHolder!!.setPadding(left, top, right, bottom)
|
||||||
}
|
|
||||||
|
|
||||||
mCurrTimeView = mView!!.video_curr_time
|
mCurrTimeView = mView!!.video_curr_time
|
||||||
mSeekBar = mView!!.video_seekbar
|
mSeekBar = mView!!.video_seekbar
|
||||||
|
|
Loading…
Reference in a new issue