Skip to content

Commit

Permalink
fix(android): configuration change not saved in current context (#11300)
Browse files Browse the repository at this point in the history
Fixes TIMOB-27505
  • Loading branch information
drauggres authored and sgtcoolguy committed Apr 17, 2020
1 parent 5cd74a5 commit ddeafd7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,10 @@ public void onConfigurationChanged(Configuration newConfig)
{
super.onConfigurationChanged(newConfig);

if (Build.VERSION.SDK_INT < 26) {
getResources().updateConfiguration(newConfig, getResources().getDisplayMetrics());
}

// Update ActionBar height and font size, if needed.
// Handler will only be null if activity was set up without a title bar.
if (this.actionBarStyleHandler != null) {
Expand Down

0 comments on commit ddeafd7

Please sign in to comment.