Replace .commit() with .apply() in PrefUtils.java

Fix according to issue #20
Merge pull request #24 from seewes/patch-1

Replace .commit() with .apply() in PrefUtils.java