mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Widget improvements
This commit is contained in:
@@ -53,7 +53,7 @@ public class Widget extends AppWidgetProvider {
|
||||
for (int id : appWidgetIds) {
|
||||
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget);
|
||||
views.setOnClickPendingIntent(R.id.widget, pi);
|
||||
views.setTextViewText(R.id.tvCount, count < 0 ? "?" : Integer.toString(count));
|
||||
views.setTextViewText(R.id.tvCount, count < 0 ? "?" : (count > 99 ? "99+" : Integer.toString(count)));
|
||||
appWidgetManager.updateAppWidget(id, views);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user