adding a crashfix at updating actionbar title
This commit is contained in:
parent
0c3a4c6253
commit
3001ea4a23
1 changed files with 3 additions and 1 deletions
|
@ -502,7 +502,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
|
|
||||||
private fun updateActionbarTitle() {
|
private fun updateActionbarTitle() {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
title = mMedia[mPos].path.getFilenameFromPath()
|
if (mPos < mMedia.size) {
|
||||||
|
title = mMedia[mPos].path.getFilenameFromPath()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue