diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/DevSettingsFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/DevSettingsFragment.kt index bb6cb9f1..bcc11b1c 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/DevSettingsFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/DevSettingsFragment.kt @@ -1,8 +1,6 @@ package com.vanced.manager.ui.fragments import android.os.Bundle -import android.view.Menu -import android.view.MenuInflater import androidx.appcompat.app.AppCompatActivity import androidx.preference.PreferenceFragmentCompat import androidx.preference.SwitchPreference @@ -34,9 +32,4 @@ class DevSettingsFragment: PreferenceFragmentCompat() { } } } - - override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { - inflater.inflate(R.menu.dev_settings_menu, menu) - super .onCreateOptionsMenu(menu, inflater) - } } \ No newline at end of file diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/SecretSettingsFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/SecretSettingsFragment.kt index bd25c2ea..d154e19d 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/SecretSettingsFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/SecretSettingsFragment.kt @@ -1,6 +1,8 @@ package com.vanced.manager.ui.fragments import android.os.Bundle +import android.view.Menu +import android.view.MenuInflater import androidx.preference.PreferenceFragmentCompat import com.vanced.manager.R @@ -11,4 +13,9 @@ class SecretSettingsFragment : PreferenceFragmentCompat() { activity?.title = "Secret Settings" } + override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { + inflater.inflate(R.menu.dev_settings_menu, menu) + super .onCreateOptionsMenu(menu, inflater) + } + }