Jelajahi Sumber

update BaseController.kt (#3423)

tatsuya25 4 tahun lalu
induk
melakukan
d8b1f60581

+ 2 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/BaseController.kt

@@ -64,8 +64,9 @@ abstract class BaseController<VB : ViewBinding>(bundle: Bundle? = null) :
     override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
         if (type.isEnter) {
             setTitle()
+            setHasOptionsMenu(true)
         }
-        setHasOptionsMenu(type.isEnter)
+        
         super.onChangeStarted(handler, type)
     }