0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-22 03:05:11 +00:00

fixed toolbar menu

This commit is contained in:
X1nto 2020-05-03 15:23:34 +04:00
parent e7d1cc5279
commit 0293122604
2 changed files with 7 additions and 7 deletions

View file

@ -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)
}
}

View file

@ -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)
}
}