DO NOT MERGE: Remove menu from SplashActivity
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -35,13 +35,8 @@ import com.aurora.store.R
|
|||||||
import com.aurora.store.data.AuthState
|
import com.aurora.store.data.AuthState
|
||||||
import com.aurora.store.data.event.BusEvent
|
import com.aurora.store.data.event.BusEvent
|
||||||
import com.aurora.store.databinding.ActivitySplashBinding
|
import com.aurora.store.databinding.ActivitySplashBinding
|
||||||
import com.aurora.store.util.Preferences
|
|
||||||
import com.aurora.store.view.ui.account.AccountActivity
|
|
||||||
import com.aurora.store.view.ui.account.GoogleActivity
|
import com.aurora.store.view.ui.account.GoogleActivity
|
||||||
import com.aurora.store.view.ui.commons.BaseActivity
|
import com.aurora.store.view.ui.commons.BaseActivity
|
||||||
import com.aurora.store.view.ui.commons.BlacklistActivity
|
|
||||||
import com.aurora.store.view.ui.preferences.SettingsActivity
|
|
||||||
import com.aurora.store.view.ui.spoof.SpoofActivity
|
|
||||||
import com.aurora.store.viewmodel.auth.AuthViewModel
|
import com.aurora.store.viewmodel.auth.AuthViewModel
|
||||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
||||||
import org.greenrobot.eventbus.EventBus
|
import org.greenrobot.eventbus.EventBus
|
||||||
@@ -136,33 +131,6 @@ class SplashActivity : BaseActivity() {
|
|||||||
super.onResume()
|
super.onResume()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
|
|
||||||
menuInflater.inflate(R.menu.menu_splash, menu)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
|
||||||
when (item.itemId) {
|
|
||||||
R.id.menu_blacklist_manager -> {
|
|
||||||
open(BlacklistActivity::class.java)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
R.id.menu_spoof_manager -> {
|
|
||||||
open(SpoofActivity::class.java)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
R.id.menu_account_manager -> {
|
|
||||||
open(AccountActivity::class.java)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
R.id.menu_settings -> {
|
|
||||||
open(SettingsActivity::class.java)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return super.onOptionsItemSelected(item)
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun attachToolbar() {
|
private fun attachToolbar() {
|
||||||
setSupportActionBar(B.layoutToolbarAction.toolbar)
|
setSupportActionBar(B.layoutToolbarAction.toolbar)
|
||||||
val actionBar = supportActionBar
|
val actionBar = supportActionBar
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><!--
|
|
||||||
~ Aurora Store
|
|
||||||
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
|
||||||
~
|
|
||||||
~ Aurora Store is free software: you can redistribute it and/or modify
|
|
||||||
~ it under the terms of the GNU General Public License as published by
|
|
||||||
~ the Free Software Foundation, either version 2 of the License, or
|
|
||||||
~ (at your option) any later version.
|
|
||||||
~
|
|
||||||
~ Aurora Store is distributed in the hope that it will be useful,
|
|
||||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
~ GNU General Public License for more details.
|
|
||||||
~
|
|
||||||
~ You should have received a copy of the GNU General Public License
|
|
||||||
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
~
|
|
||||||
-->
|
|
||||||
|
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item
|
|
||||||
android:id="@+id/menu_blacklist_manager"
|
|
||||||
android:icon="@drawable/ic_blacklist"
|
|
||||||
android:title="@string/title_blacklist_manager" />
|
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/menu_spoof_manager"
|
|
||||||
android:icon="@drawable/ic_anonymous"
|
|
||||||
android:title="@string/title_spoof_manager" />
|
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/menu_account_manager"
|
|
||||||
android:icon="@drawable/ic_account_manager"
|
|
||||||
android:title="@string/title_account_manager" />
|
|
||||||
|
|
||||||
<item
|
|
||||||
android:id="@+id/menu_settings"
|
|
||||||
android:icon="@drawable/ic_menu_settings"
|
|
||||||
android:title="@string/title_settings" />
|
|
||||||
</menu>
|
|
||||||
Reference in New Issue
Block a user