refresh menu items after toggling a folders favorite status
This commit is contained in:
parent
c45b6f1d66
commit
a5fbfb5b92
|
@ -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'
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue