Save the bitrate preference before starting a stream

This commit is contained in:
Cameron Gutman 2014-05-07 21:39:23 -04:00
parent 5efcd606e3
commit 508b855e36

View File

@ -226,6 +226,12 @@ public class Connection extends Activity {
return;
}
// Ensure that the bitrate preference is up to date before
// starting the game activity
prefs.edit().
putInt(Game.BITRATE_PREF_STRING, bitrateSlider.getProgress()).
commit();
Intent intent = new Intent(Connection.this, Game.class);
intent.putExtra("host", Connection.this.hostText.getText().toString());
Connection.this.startActivity(intent);