mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-03-29 03:41:12 -04:00
update the breadcrumb color if it was changed
This commit is contained in:
@@ -29,6 +29,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
||||
var mBasePath = getInternalStoragePath()
|
||||
var latestFragment: ItemsFragment? = null
|
||||
var mScrollStates = HashMap<String, Parcelable>()
|
||||
var mStoredTextColor = 0
|
||||
|
||||
companion object {
|
||||
private val STORAGE_PERMISSION = 1
|
||||
@@ -48,6 +49,16 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
updateTextColors(main_screen)
|
||||
if (mStoredTextColor != config.textColor) {
|
||||
mStoredTextColor = config.textColor
|
||||
breadcrumbs.setTextColor(mStoredTextColor)
|
||||
initRootFileManager()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
mStoredTextColor = config.textColor
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user