Fixing crash when getActivity is null

> Also changing the default value of preferences to true

Change-Id: I0a80d9b6b76d7210b12c952cf8e991a3eb327e5c
1 file changed