Merge pull request #128 from Javran/agent-picker-memorize

make the agent picker remember the previous value
This commit is contained in:
Anthony Restaino 2014-12-29 16:48:57 -05:00
commit 187855bdae

View File

@ -731,6 +731,7 @@ public class SettingsActivity extends Activity {
agentStringPicker.setTitle(getResources().getString(R.string.title_user_agent));
final EditText getAgent = new EditText(this);
getAgent.append(mPreferences.getString(PreferenceConstants.USER_AGENT_STRING, ""));
agentStringPicker.setView(getAgent);
agentStringPicker.setPositiveButton(getResources().getString(R.string.action_ok),
new DialogInterface.OnClickListener() {