mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-18 06:54:26 +01:00
opt.
This commit is contained in:
@@ -95,6 +95,7 @@ class HomeWidget : AppWidgetProvider() {
|
||||
appWidgetManager.updateAppWidget(appWidgetId, views)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
println("ServerBoxHomeWidget: ${e.localizedMessage}")
|
||||
GlobalScope.launch(Dispatchers.Main) main@ {
|
||||
views.setViewVisibility(R.id.widget_cpu_label, View.INVISIBLE)
|
||||
views.setViewVisibility(R.id.widget_mem_label, View.INVISIBLE)
|
||||
|
||||
Reference in New Issue
Block a user