Settings: Fix Potential NPE

Change-Id: Ied91344a938fee58827a18c3d555053ea9898c0d
fix: Don't show "CRT animation" option if electronbeamfades

-The "if" statement here is designed to make sure that electronbean fades == false
and that mCrtMode !=null because if electronbeamfades == true then you can't change
the "CRT animation"/mCrtMode option. So the "else if" statement is not supposed
to remove animationOptions ( that removes all settings under "DISPLAY AND ANIMATION
OPTIONS" ), It is supposed to simply remove the single setting "CRT animation"/mCrtMode
if electronbeamfades == true.

- This is also a more proper fix for "fix: 'display and animations FC'
https://github.com/scotthartbti/android_packages_apps_Settings/commit/23a5414fb213dc6b838f3c5cbe1e79a2b6f06e0f

-NOTE: To get Crt animations back change/add: 'config_animateScreenLights' in
your device tree overlay "frameworks/base/core/res/res/values/config.xml
to false.
Change-Id: I0c0e16f4d3fd7df0ad0125545b633f58f1d20e40
screenrecorder: check for supported video encoder resolutions.

-Only supported video encoder resolutions will be displayed. Video
encoder support is outlined in /etc/media_profiles.xml and
/etc/media_codecs.xml

-In my testing selecting and unsupported resolution causes screen-
recorder to fail. If the devices encoder resolutions are not in the static list
(such as 480p 480x720) there is no way to set the correct resolution. This fixes
those issues.

-More info on Media Encoders: https://source.android.com/devices/media.html

Change-Id: I13b32b8f10655a5cf13ae55ae56eeb4de69ae68e
Build.prop Mods: Do some prereq's before showing options

-Settings for phones will not be shown for non-phones.

-Devices without a proximity sensor will not be shown options
for proximity.

-Devices that have phone capabilities and a proximity sensor should
see no change.

Change-Id: I5590c1c65ec3f375b1b4e089799e7350b8918f70