Minor code refactoring. Russian translation fixes.

Regarding ``SharedPreferences.Editor.commit()`` vs ``SharedPreferences.Editor.apply()``: http://developer.android.com/reference/android/content/SharedPreferences.Editor.html#apply()