From 64ef5fc7d47a56f77f766d6e59c5d7e62241e207 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 28 Mar 2020 18:19:47 +0100 Subject: [PATCH] removing the scientific calculator menu button --- .../simplemobiletools/calculator/activities/MainActivity.kt | 6 ------ app/src/main/res/menu/menu.xml | 4 ---- build.gradle | 1 - 3 files changed, 11 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/MainActivity.kt index aef91942..b24d2a2e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/MainActivity.kt @@ -84,7 +84,6 @@ class MainActivity : SimpleActivity(), Calculator { override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu, menu) - menu.findItem(R.id.scientific_calculator).isVisible = false // not implemented yet return true } @@ -92,7 +91,6 @@ class MainActivity : SimpleActivity(), Calculator { when (item.itemId) { R.id.settings -> launchSettings() R.id.about -> launchAbout() - R.id.scientific_calculator -> launchScientific() else -> return super.onOptionsItemSelected(item) } return true @@ -114,10 +112,6 @@ class MainActivity : SimpleActivity(), Calculator { startActivity(Intent(applicationContext, SettingsActivity::class.java)) } - private fun launchScientific() { - startActivity(Intent(applicationContext, ScientificActivity::class.java)) - } - private fun launchAbout() { val licenses = LICENSE_AUTOFITTEXTVIEW or LICENSE_ROBOLECTRIC or LICENSE_ESPRESSO diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 4c55f4e9..815619cd 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -1,10 +1,6 @@ -