refresh menu items after toggling a folders favorite status

This commit is contained in:
tibbi 2023-01-07 22:17:25 +01:00
parent c45b6f1d66
commit a5fbfb5b92
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:a6c22de9d6'
implementation 'com.github.SimpleMobileTools:Simple-Commons:71f9297e2e'
implementation 'com.github.tibbi:PdfViewPager:d2af24208d'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'

View File

@ -548,10 +548,12 @@ class MainActivity : SimpleActivity() {
private fun addFavorite() {
config.addFavorite(getCurrentFragment()!!.currentPath)
refreshMenuItems()
}
private fun removeFavorite() {
config.removeFavorite(getCurrentFragment()!!.currentPath)
refreshMenuItems()
}
private fun toggleFilenameVisibility() {