Skip to content

Commit

Permalink
refresh menu items after toggling a folders favorite status
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed Jan 7, 2023
1 parent c45b6f1 commit a5fbfb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a5fbfb5

Please sign in to comment.