Skip to content

Commit 6be55d3

Browse files
committed
update the breadcrumb color if it was changed
1 parent 0dfd868 commit 6be55d3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
}
3333

3434
dependencies {
35-
compile 'com.simplemobiletools:commons:2.12.0'
35+
compile 'com.simplemobiletools:commons:2.12.1'
3636
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
3737
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
3838
}

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
2929
var mBasePath = getInternalStoragePath()
3030
var latestFragment: ItemsFragment? = null
3131
var mScrollStates = HashMap<String, Parcelable>()
32+
var mStoredTextColor = 0
3233

3334
companion object {
3435
private val STORAGE_PERMISSION = 1
@@ -48,6 +49,16 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
4849
override fun onResume() {
4950
super.onResume()
5051
updateTextColors(main_screen)
52+
if (mStoredTextColor != config.textColor) {
53+
mStoredTextColor = config.textColor
54+
breadcrumbs.setTextColor(mStoredTextColor)
55+
initRootFileManager()
56+
}
57+
}
58+
59+
override fun onPause() {
60+
super.onPause()
61+
mStoredTextColor = config.textColor
5162
}
5263

5364
override fun onDestroy() {

0 commit comments

Comments
 (0)