Skip to content

Commit

Permalink
Removed about and settings from the top right
Browse files Browse the repository at this point in the history
Removed about and settings from the top right of the menu.
  • Loading branch information
henrikth93 committed Aug 13, 2024
1 parent 6f3bd1d commit abfea22
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/be/scri/activities/AboutActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AboutActivity : BaseSimpleActivity(), GestureDetector.OnGestureListener{
return@OnNavigationItemSelectedListener true
}

R.id.about -> {
R.id.info -> {
return@OnNavigationItemSelectedListener true }
R.id.installation -> {
startActivity(Intent(applicationContext, MainActivity::class.java))
Expand All @@ -67,7 +67,7 @@ class AboutActivity : BaseSimpleActivity(), GestureDetector.OnGestureListener{
}
false
})
bottomNavigationView.selectedItemId = R.id.about
bottomNavigationView.selectedItemId = R.id.info
}


Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/be/scri/activities/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class MainActivity : SimpleActivity(), GestureDetector.OnGestureListener {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.settings -> launchSettings()
R.id.about -> launchAbout()
R.id.info -> launchAbout()
else -> return super.onOptionsItemSelected(item)
}
return true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WikimediaScribeActivity : BaseSimpleActivity(){
return@OnNavigationItemSelectedListener true
}

R.id.about -> {
R.id.info -> {
return@OnNavigationItemSelectedListener true }
R.id.installation -> {
startActivity(Intent(applicationContext, MainActivity::class.java))
Expand All @@ -40,7 +40,7 @@ class WikimediaScribeActivity : BaseSimpleActivity(){
}
false
})
bottomNavigationView.selectedItemId = R.id.about
bottomNavigationView.selectedItemId = R.id.info
}

}
Expand Down
13 changes: 1 addition & 12 deletions app/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
<?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/settings"
android:icon="@drawable/ic_settings_cog_vector"
android:title="@string/settings"
app:showAsAction="ifRoom" />
<item
android:id="@+id/about"
android:icon="@drawable/ic_info_vector"
android:title="@string/about"
app:showAsAction="ifRoom" />
</menu>
xmlns:app="http://schemas.android.com/apk/res-auto"/>

0 comments on commit abfea22

Please sign in to comment.