code: protected void updateVersionInPreferences() {
          SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);
          SharedPreferences.Editor editor = sp.edit();
          editor.putInt(VERSION_KEY, mCurrentVersionCode);
  
          // TODO: Update preferences from a background thread
          editor.commit();
      }
docs: Write current version code to the preferences.