Skip to content
Snippets Groups Projects
Verified Commit dd7c4093 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Make sure we don’t try to open a drawer that doesn’t exist

parent 1ce59fa0
No related branches found
No related tags found
No related merge requests found
......@@ -783,7 +783,8 @@ class ChatActivity : ServiceBoundActivity(), SharedPreferences.OnSharedPreferenc
?: -1)
connectedAccount = savedInstanceState?.getLong(KEY_CONNECTED_ACCOUNT, -1L) ?: -1L
if (savedInstanceState?.getBoolean(KEY_OPEN_DRAWER_START) == true) {
if (savedInstanceState?.getBoolean(KEY_OPEN_DRAWER_START) == true &&
resources.getBoolean(R.bool.buffer_drawer_exists)) {
drawerLayout.openDrawer(GravityCompat.START)
}
if (savedInstanceState?.getBoolean(KEY_OPEN_DRAWER_END) == true) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment