Skip to content

Commit

Permalink
Workaround frag state loss exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nkming2 committed Jun 10, 2017
1 parent 723dedb commit eeed765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nkming/powermenu/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MainActivity : AppCompatActivity()
{
supportFragmentManager.beginTransaction()
.add(R.id.container, MainFragment())
.commit()
.commitAllowingStateLoss()
}
}
}
Expand Down

0 comments on commit eeed765

Please sign in to comment.