removing the scientific calculator menu button

This commit is contained in:
tibbi 2020-03-28 18:19:47 +01:00
parent 0c7d0f59ad
commit 64ef5fc7d4
3 changed files with 0 additions and 11 deletions

View File

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

View File

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/scientific_calculator"
android:title="@string/scientific_calculator"
app:showAsAction="never"/>
<item
android:id="@+id/settings"
android:title="@string/settings"

View File

@ -2,7 +2,6 @@
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()