Closed ersin-ertan closed 6 years ago
Can you provide an layout xml that is reproducing this error?
Can you test what is happening when you use the layout without using the cache?
Is this what you mean by without cache. If so, working as intended.
//ActivityMainLayout layout =
//LayoutCache.getInstance().getLayout(this, LayoutCache.Activity_Main_Layout);
setContentView(R.layout.activity_main);
New ActivityMainLayout(this)
Tested with:
ActivityMainLayout layout = new ActivityMainLayout(this); setContentView(layout);
working as correctly.
Looks like the cache needs an invalidation when exiting the App.
Is this something that the developer should be doing, or done via the library?
The Library needs an invalidate inside the cache. The developer has to call this in the ondestroy of the activity.
Ok, I'll be watching the repo, so if you need someone to test, I can verify functionality.
Trying a base example, went back, then opened the app again.