You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We simplified DimenCache.invalidateOnConfigChange: you only need to pass the new configuration. You no longer have to keep track of the previous configuration yourself.
This makes the common “activity stays alive on rotation / resize / density changes” case easier to wire up—less boilerplate, fewer moving parts.
What to change in your app
If you were calling the old two-argument version, switch to the single-argument call with the latest Configuration you received (for example from onConfigurationChanged).
Docs and samples were updated to match. Sample activities include a commented example you can turn on when you use android:configChanges in your manifest.
This discussion was created from the release 3.1.4.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
AppDimens Dynamic 3.1.4
Easier cache refresh on configuration changes
We simplified
DimenCache.invalidateOnConfigChange: you only need to pass the new configuration. You no longer have to keep track of the previous configuration yourself.This makes the common “activity stays alive on rotation / resize / density changes” case easier to wire up—less boilerplate, fewer moving parts.
What to change in your app
If you were calling the old two-argument version, switch to the single-argument call with the latest
Configurationyou received (for example fromonConfigurationChanged).Docs and samples were updated to match. Sample activities include a commented example you can turn on when you use
android:configChangesin your manifest.This discussion was created from the release 3.1.4.
Beta Was this translation helpful? Give feedback.
All reactions