public void displayActionItem(final int layout, final String info, final boolean withBadge, final Action1<Boolean> action) {
        final int delta = withBadge ? 1 : 0;
        final TextView l = findViewById(layout);
        if (l != null) {
            l.setVisibility(View.VISIBLE);
            updateHomeBadge(delta);
            l.setText(info);
            l.setOnClickListener(v -> {
                action.call(true);
                l.setVisibility(View.GONE);
                updateHomeBadge(-delta);
            });
            l.setOnLongClickListener(v -> {
                action.call(false);
                l.setVisibility(View.GONE);
                updateHomeBadge(-delta);
                return true;
            });
        }
    }
display action notifications, e. g. update or backup reminders
action callback accepts true, if action is to be performed / false if to be postponed
main/src/main/java/cgeo/geocaching/MainActivity.java