Attempts to fix potential problems with proximity sensor.
Attempts to fix ChatActivity crash.