Hide disabled widget refresh button

pull/205/head
M66B 3 years ago
parent fd0b0ef33b
commit ab6150e587

@ -107,7 +107,7 @@ public class WidgetUnified extends AppWidgetProvider {
boolean syncing = prefs.getBoolean("widget." + appWidgetId + ".syncing", false);
views.setImageViewResource(R.id.refresh, syncing ? R.drawable.twotone_compare_arrows_24 : R.drawable.twotone_sync_24);
views.setViewVisibility(R.id.refresh, refresh ? View.VISIBLE : View.INVISIBLE);
views.setViewVisibility(R.id.refresh, refresh ? View.VISIBLE : View.GONE);
views.setViewVisibility(R.id.compose, compose ? View.VISIBLE : View.GONE);
views.setViewPadding(R.id.compose, px, px, px, px);

Loading…
Cancel
Save