private void doChangeVideoQuality(Utils.PrefQuality quality) { SharedPreferences.Editor prefEdit = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit(); prefEdit.putString(Utils.getResText(R.string.csquality), quality.name()); prefEdit.commit(); // Show toast to bottom of screen UiUtils.showTextToastAtBottom(this, R.string.msg_post_changing_video_quality, false); mMp.restartFromCurrentPosition(); }