clearBranding static method
void
clearBranding()
Implementation
static void clearBranding() async
{
// do nothing if in web or no default application
if (FmlEngine.isWeb || _brandedApp == null) return;
// show dialog to confirm
bool ok = await _confirmClearBranding();
if (!ok) return;
// reset default icon
_setBranding(mainIcon);
// delete all apps
for (var app in _apps) {
await app.initialized;
await app.delete();
}
_apps.clear();
// notify the user
ok ? toast(phrase.defaultAppRemoved) : toast(phrase.defaultAppRemovedProblem);
}