[Android] Fix the compile warning in XWalkPreferences.java.

The warning is "uses unchecked or unsafe operations". It's because
of the missed type specifier and type cast.
Merge pull request #1924 from yongsheng/fixwarning

[Android] Fix the compile warning in XWalkPreferences.java.