Skip to content

Commit

Permalink
Fix display & crash on theme change (API <=23)
Browse files Browse the repository at this point in the history
Fixes Github issue #5
  • Loading branch information
mattvchandler committed May 30, 2019
1 parent aa1fd8d commit 727b5e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ class MainActivity: Themed_activity(), SurfaceHolder.Callback
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
{
if(requestCode == SETTINGS_RESULT)
recreate()
else
super.onActivityResult(requestCode, resultCode, data)
Handler().postDelayed({recreate()}, 0)

super.onActivityResult(requestCode, resultCode, data)
}

class DispData
Expand Down

0 comments on commit 727b5e4

Please sign in to comment.