From 029312260435c4f449b99df639211e0ca9280e34 Mon Sep 17 00:00:00 2001 From: X1nto Date: Sun, 3 May 2020 15:23:34 +0400 Subject: [PATCH] fixed toolbar menu --- .../com/vanced/manager/ui/fragments/DevSettingsFragment.kt | 7 ------- .../vanced/manager/ui/fragments/SecretSettingsFragment.kt | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) 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) + } + }