public static boolean useOrientationSensor(final Context context) {
        return OrientationProvider.hasOrientationSensor(context) &&
                (getBoolean(R.string.pref_force_orientation_sensor, false) ||
                        !(RotationProvider.hasRotationSensor(context) || MagnetometerAndAccelerometerProvider.hasMagnetometerAndAccelerometerSensors(context))
                );
    }
Remember the stata of the "hide visited waypoints"-checkbox in the waypoints overview dialog
main/src/main/java/cgeo/geocaching/settings/Settings.java