Skip to content

Commit

Permalink
Merge pull request #10 from babydots/fix-9-toolbar-hide-on-lock
Browse files Browse the repository at this point in the history
Hide the toolbar when locking
  • Loading branch information
pserwylo authored Nov 7, 2021
2 parents 8971945 + 01513e2 commit 37f17c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.serwylo.babyphone"
minSdkVersion 22
targetSdkVersion 30
versionCode 4
versionName "0.4.0"
versionCode 5
versionName "0.4.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/com/serwylo/babyphone/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ class MainActivity : AppCompatActivity() {

override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.menu_lock -> immersiveLock.startImmersiveMode(this)
R.id.menu_lock -> {
immersiveLock.startImmersiveMode(this)
binding.toolbar.visibility = View.GONE
}
R.id.menu_settings -> startActivity(Intent(this, SettingsActivity::class.java))
}
return super.onOptionsItemSelected(item)
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix to the baby lock: Hide the toolbar when locked.

0 comments on commit 37f17c2

Please sign in to comment.