save and restore layers image when context is lost in Android
This commit is contained in:
@@ -612,3 +612,15 @@ bool LayoutManager::reload()
|
||||
std::string path_copy = m_path;
|
||||
return load(path_copy.c_str());
|
||||
}
|
||||
|
||||
void LayoutManager::restore_context()
|
||||
{
|
||||
for (auto& node : m_layouts)
|
||||
node.second->restore_context();
|
||||
}
|
||||
|
||||
void LayoutManager::clear_context()
|
||||
{
|
||||
for (auto& node : m_layouts)
|
||||
node.second->clear_context();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user