update the breadcrumb color if it was changed
This commit is contained in:
parent
0dfd868d71
commit
6be55d391a
|
@ -32,7 +32,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.simplemobiletools:commons:2.12.0'
|
||||
compile 'com.simplemobiletools:commons:2.12.1'
|
||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue