mirror of https://github.com/M66B/FairEmail.git
Fixed messages widget empty space
This commit is contained in:
parent
e1a701b264
commit
f853579038
|
@ -101,9 +101,12 @@ public class WidgetUnified extends AppWidgetProvider {
|
|||
|
||||
views.setOnClickPendingIntent(R.id.title, pi);
|
||||
|
||||
long now = new Date().getTime();
|
||||
long refreshing = prefs.getLong("widget." + appWidgetId + ".sync", 0L);
|
||||
views.setViewVisibility(R.id.refresh, refresh && refreshing < now ? View.VISIBLE : View.INVISIBLE);
|
||||
if (refresh) {
|
||||
long now = new Date().getTime();
|
||||
long refreshing = prefs.getLong("widget." + appWidgetId + ".sync", 0L);
|
||||
views.setViewVisibility(R.id.refresh, refreshing < now ? View.VISIBLE : View.INVISIBLE);
|
||||
} else
|
||||
views.setViewVisibility(R.id.refresh, View.GONE);
|
||||
|
||||
views.setViewPadding(R.id.refresh, px, px, px, px);
|
||||
views.setOnClickPendingIntent(R.id.refresh, piSync);
|
||||
|
|
Loading…
Reference in New Issue