My app makes http request to the server, takes default.css and applies it. App has button for downloading default.css and applying at runtime. I destroy current Fragment and create new. After several attempts to update and apply default.css I get OutOfMemoryError. Android Memory Monitor in Android Studio shows me that when I click to update and apply new default.css, Allocated memory increased by ~10 MB. App stops with OutOfMemoryError when Allocated memory achieves ~130 MB.
When I start app without pixate I don't see this problem. My custom implementation download json with styles and apply at runtime.
How can I release resources in pixate when I update default.css?
My app makes http request to the server, takes default.css and applies it. App has button for downloading default.css and applying at runtime. I destroy current Fragment and create new. After several attempts to update and apply default.css I get OutOfMemoryError. Android Memory Monitor in Android Studio shows me that when I click to update and apply new default.css, Allocated memory increased by ~10 MB. App stops with OutOfMemoryError when Allocated memory achieves ~130 MB. When I start app without pixate I don't see this problem. My custom implementation download json with styles and apply at runtime. How can I release resources in pixate when I update default.css?