make the agent picker remember the previous value
Saying you might sometimes accidentally click "yes" when editing user agent string and then the previous setting goes away or there is a typo in the customized string and you want to modify it slightly. And making the agent picker remember the previous value solves all the problems above :)
This commit is contained in:
parent
df51c67909
commit
660d4f0e04
@ -721,6 +721,7 @@ public class SettingsActivity extends Activity {
|
|||||||
|
|
||||||
agentStringPicker.setTitle(getResources().getString(R.string.title_user_agent));
|
agentStringPicker.setTitle(getResources().getString(R.string.title_user_agent));
|
||||||
final EditText getAgent = new EditText(this);
|
final EditText getAgent = new EditText(this);
|
||||||
|
getAgent.append(mPreferences.getString(PreferenceConstants.USER_AGENT_STRING, ""));
|
||||||
agentStringPicker.setView(getAgent);
|
agentStringPicker.setView(getAgent);
|
||||||
agentStringPicker.setPositiveButton(getResources().getString(R.string.action_ok),
|
agentStringPicker.setPositiveButton(getResources().getString(R.string.action_ok),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user