Skip to content

3.1.4

Choose a tag to compare

@bodenberg bodenberg released this 14 Apr 23:44
· 58 commits to main since this release

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 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.