Update API(b042407e66)
This commit is contained in:
parent
bf0fa9e28c
commit
68bff48ddd
1 changed files with 4 additions and 5 deletions
|
|
@ -20,6 +20,10 @@ import org.microg.gms.gcm.setGcmServiceConfiguration
|
|||
class PushNotificationFragment : Fragment(R.layout.push_notification_fragment) {
|
||||
lateinit var binding: PushNotificationFragmentBinding
|
||||
|
||||
init {
|
||||
setHasOptionsMenu(true)
|
||||
}
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
binding = PushNotificationFragmentBinding.inflate(inflater, container, false)
|
||||
binding.switchBarCallback = object : PreferenceSwitchBarCallback {
|
||||
|
|
@ -53,11 +57,6 @@ class PushNotificationFragment : Fragment(R.layout.push_notification_fragment) {
|
|||
}
|
||||
}
|
||||
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
setHasOptionsMenu(true)
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
||||
menu.add(0, MENU_ADVANCED, 0, R.string.menu_advanced)
|
||||
super.onCreateOptionsMenu(menu, inflater)
|
||||
|
|
|
|||
Loading…
Reference in a new issue