public static void setEnabled(final View view, final boolean enabled) {
        if (view == null) {
            return;
        }
        view.setEnabled(enabled);
    }
Sets enabled/disabled flag for given view (without crashing on null view)
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java